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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Express Win Auth

Status
Not open for further replies.

EZEason

Programmer
Dec 11, 2000
213
US
I have an app that is to store data into a SQL Express database. The connection works fine. I can store data from my pc. The database is set up for Windows Authentication. When the app runs on another workstation, the data is not save. Here is the connection string:
Code:
    ConnectionString = "Provider=SQLNCLI;" & _
                        "Integrated Security=SSPI;" & _
                        "Persist Security Info=False;" & _
                        "Data Source=Serv\SQLEXPRESS;" & _
                        "Packet Size=8192;" & _
                        "Initial Catalog=Database;"
I do not get any errors about the conneciton. Is there something I'm missing?

What doesn't kill you makes you stronger.
 
It looks like you are mixing your connection strings (between sql 2000 and sql 2005). You should take a looks at
Code:
    ConnectionString = "Provider=SQLNCLI;" & _
                        "Trusted_Connection=yes;" & _
                        "Server=Serv\SQLEXPRESS;" & _
                        "Database=Database;"

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
I tried it and recieve Error 3706: Provider cannot be found.



What doesn't kill you makes you stronger.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top