DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   ms access connect with asp.net (http://www.daniweb.com/forums/thread123422.html)

sharif_mehdia May 9th, 2008 2:16 pm
ms access connect with asp.net
 
I am doing a project on asp.net.but problem is that i cannot connect database(ms access)from page.how can i get this connection?can any one send me source code to solve this problem?or give any better solution as soon as possible please..

mkp007patel May 16th, 2008 2:56 am
Re: ms access connect with asp.net
 
dear friend
check it........

string constring=
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;"

// you can change data source according to your database address

OleDbConnection con = new OleDbConnection(constring);


All times are GMT -4. The time now is 3:54 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC