database file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-07-22 02:14 PM
Hello everyone,
I have a SQLite database file .db that I need to get data from it as a collection,
can anyone tell me how can I do it?
Thanks,

------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
I have a SQLite database file .db that I need to get data from it as a collection,
can anyone tell me how can I do it?
Thanks,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-07-22 02:39 PM
Hi Mohammed
I'm not familiar with the use of the db files but im assuming this is an extracted file from and SQL database? If so is it not possible for you to use the OLEDB actions to extract the data directly from the database? If not can you convert the db file to a CSV file or get the database extract from sql in a csv file?
------------------------------
Michael ONeil
Technical Lead developer
NTTData
Europe/London
------------------------------
I'm not familiar with the use of the db files but im assuming this is an extracted file from and SQL database? If so is it not possible for you to use the OLEDB actions to extract the data directly from the database? If not can you convert the db file to a CSV file or get the database extract from sql in a csv file?
------------------------------
Michael ONeil
Technical Lead developer
NTTData
Europe/London
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-07-22 02:51 PM
Hi @Mohammed Shilbayeh
I see that there is no VBO in the DX store.
I create you a special VBO to execute queries and get collections.
Attached to this post you have all the dlls that you need to use and the VBO.
In the folder dlls you have all the libraries that you need to have in your Blue Prism installation folder (Usually >> C:\Program Files\Blue Prism Limited\Blue Prism Automate)
Import the VBO and use the action "Get Query as Collection".
As input parametter you need to indicate the file and the query that you want to get returned as collection
The code behind is very simple:
Hope this helps you! If you need to add more actions here, let me know and I change the VBO
See you in the Community, bye 🙂
------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------
I see that there is no VBO in the DX store.
I create you a special VBO to execute queries and get collections.
Attached to this post you have all the dlls that you need to use and the VBO.
In the folder dlls you have all the libraries that you need to have in your Blue Prism installation folder (Usually >> C:\Program Files\Blue Prism Limited\Blue Prism Automate)
Import the VBO and use the action "Get Query as Collection".
As input parametter you need to indicate the file and the query that you want to get returned as collection
The code behind is very simple:
string cs = "Data Source=" + DataBaseFile + ";Version=3;";
string sql = Query;
var con = new SQLiteConnection(cs);
con.Open();
var cmd = new SQLiteCommand(sql, con);
DataTable dt = new DataTable();
dt.Load(cmd.ExecuteReader());
dtResult = dt;
Hope this helps you! If you need to add more actions here, let me know and I change the VBO
See you in the Community, bye 🙂
------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-07-22 10:26 AM
pls check if the below VBO is helping you.
------------------------------
Neeraj Kumar
Technical Architect
------------------------------
------------------------------
Neeraj Kumar
Technical Architect
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-07-22 10:52 AM
Hi @Michael ONeil ,
that's what i tried to do ,to convert the .db file to CSV file but it didn't work
i found that there is an object in the digital exchange for importing data from SQLite DB.
Thank you for helping,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
that's what i tried to do ,to convert the .db file to CSV file but it didn't work
i found that there is an object in the digital exchange for importing data from SQLite DB.
Thank you for helping,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-07-22 10:57 AM
Hi @PabloSarabia ,
Thank you so much for this VBO, I will try it now,
i think that only what i need.
Thanks,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
Thank you so much for this VBO, I will try it now,
i think that only what i need.
Thanks,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-07-22 11:20 AM
Hi @Neeraj Kumar ,
Thank you for your help,
I found a VBO called "Function for Data - SQLite - 1.0.0" it work fine with me.
Thanks,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
Thank you for your help,
I found a VBO called "Function for Data - SQLite - 1.0.0" it work fine with me.
Thanks,
------------------------------
Mohammed Shilbayeh
Amman
+962785766991
------------------------------
