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

How to call the MS ACCESS ODBC datasource created with Administrtive Tools->ODBC Utility in connection string of a program.What i am doing right now is as below

connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\*.mdb;"


Is it possible to mention the datasource name created using the utility here

Please help!!!
Posted
Updated 12-May-11 8:05am
v2

Yes it is quite possible.
See http://www.connectionstrings.com/dsn[^].
 
Share this answer
 
Use Following Connctionstring:

connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2008\\Projects\\Database name.mdb";  
 
Share this answer
 
Comments
Eager2Lern 12-May-11 13:44pm    
saini, please read my question carefully

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