Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I use ODBC data source to connect vb.net application to MS ACCESS database.When I have to install it in my clients PC,I have to manually make ODBC connection
from(Control Panel ->Administrative Tools->Data source(ODBC)).
Now what I want to do is,include odbc connection string in vb.net code itself so that I dont have to manually create odbc connection in clients PC.Is it possible to do so??
If no,then is there any other alternative?
Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 17-Dec-12 0:44am    
Why ODBC?!
—SA

1 solution

Basically, you can use ADO.NET with System.Data.Odbc. This is a minimal introductory tutorial:
http://www.easysoft.com/developer/languages/csharp/ado-net-odbc.html[^].

—SA
 
Share this answer
 
Comments
Rachna0309 17-Dec-12 0:05am    
Is there ant other way??This doesnt work.
Sergey Alexandrovich Kryukov 17-Dec-12 0:32am    
Is there a different attitude? Yours does not work. You need to do the effort to make things work. This is a right way, and it works.
—SA
Rachna0309 17-Dec-12 0:53am    
Thanks..
Sergey Alexandrovich Kryukov 17-Dec-12 1:06am    
You are welcome.
—SA
Ashok19r91d 17-Dec-12 0:42am    
Use OleDb method to work with .Net and Access, OleDb Not require any DSN so you can just distribute Your app with DB and .Net FW.

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