ashahmy
New member
- Joined
- Sep 24, 2010
- Messages
- 4
- Programming Experience
- Beginner
Hi All,
I was create a project with vb.net and sql server 2005. I was used oledb connection string for database connection. With my sql server database it work properly But i don't know how to connect mdf file using oledb connection string. But I was tried following way but it got error.
accessConnection.ConnectionString = "provider=SQLOLEDB;Data Source=.\SQLEXPRESS;AttachDbFilename=C:\data\cosmetic.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
if any one know please help me.
Thank You.
I was create a project with vb.net and sql server 2005. I was used oledb connection string for database connection. With my sql server database it work properly But i don't know how to connect mdf file using oledb connection string. But I was tried following way but it got error.
accessConnection.ConnectionString = "provider=SQLOLEDB;Data Source=.\SQLEXPRESS;AttachDbFilename=C:\data\cosmetic.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
if any one know please help me.
Thank You.