I found the post on same forum for read a .db file in c# but is is not showing how to access it's table from code.
So does any one know about how to open a connection and access/read the .db
file in vb.net
?
I tried the code below to open connection but getting this error:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
My code is:
Dim connection As OleDbConnection = New OleDbConnection
connection = New OleDbConnection("Provider=SQLOLEDB;Data Source=C:\mydatabase.db;Persist Security Info=True;Integrated Security=SSPI;")
connection.Open()
Thanks.