hi,
If i am going to connect the sql connection string. i am getting the connection string error that is an error occurred creating the form. See Exception.InnerException for details. The error is: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.This is my connection string
Dim FillcbDoctor_constr As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\Reception\Desktop\Hospital Management\Destinationd\DB\HosDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
May any one help me??
Connection String SqlOledb
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Jayant Kumar12 reputationPosted Apr 7, 2014, 3:05 AM EDT
Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname;
Trusted_Connection=Yes;
look at the following reference:
https://www.connectionstrings.com/sql-server/
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 7, 2014, 9:10 AM EDT