Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

would like to connect access database using odbc driver connection string but not with the attribute Dbq/DSN. i would like to connect the database using SERVER attribute in the connection string for access. Is it possible?

C#
//Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\mydatabase.accdb;Uid=Admin;Pwd=;


//Dsn=DatabaseName


I have tried this two but we want the attibute server instead of Dbq or DSN.

Is it possible?
Posted
Updated 6-Sep-15 20:58pm
v2
Comments
Herman<T>.Instance 7-Sep-15 3:31am    
db is on network location?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900