Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection String

Status
Not open for further replies.

chamilz

MIS
Joined
Feb 10, 2005
Messages
102
Location
CA
I am very new to vb.net (2005). I developed a small application which retrives data from the SQL table and used the following connection string. my application works for user who have admin rights to access SQL server.

Conn = New SqlClient.SqlConnection("Data Source=CA-TNET01;Initial Catalog=Transnet;Integrated Security=True”)

But others who don’t have admin right can not run the application. So that I used the following connection string but it gives me an error “Keyword not supported: 'provider'.”

Conn = New SqlClient.SqlConnection("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=CA-TNET01")

Your reccomendation greatly appriciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top