|
Subject:
|
not associated with a trusted SQL Server Connectio
|
|
Posted By:
|
chiefouko
|
Post Date:
|
8/20/2003 7:29:36 PM
|
Hey guyz am having problems accessing the database from a VB6 program and instead getting the error below.
Run-time error '-2147217843 (80040e4d) [Microsoft][ODBC SQL Server Driver][SQL Server][Login failed for user '[null]'. Reason: not associated with a trusted SQL Server Connection.
the client is using Windows NT Authentication
and am using connection command like the one below in VB6.
NOTE: This connection has been working in my computer, but on the client computer even after specifying the correct database and the server it still gives me problems (The error above).
objConn.Open "Driver=SQL Server;Server=" & SQLServer & ";" & "Database=" & SQLDB & ";"
if u can help please!! holla
LION OF JUDDAH!
|
|
Reply By:
|
Ned
|
Reply Date:
|
8/21/2003 10:37:21 AM
|
Solution 1: You can add UID=sa;pwd=; at the end of the connection string. Provided if you do not have password for sa and if you do then add UID=sa;pwd=yourpassword;
Solution 2: Open the property window of the database in the Enterprise Manager and under Security tab change the authentication mode to SQL server and windows. Make sure that windows user has enough previliges to access the database.
Cheers, -ned
|
|
Reply By:
|
jxing
|
Reply Date:
|
2/12/2005 9:22:15 PM
|
I have tried both ways and none of them work. I will post the solution after I make it works.
James Http://www.top-ink.com www.top-ink.com
|
|
Reply By:
|
jxing
|
Reply Date:
|
2/12/2005 11:45:15 PM
|
I just solved the problem by creating new user from database. You shall try to use those methods first, if it not works, create new user will be okay for you.
James http://www.top-ink.com www.top-ink.com
|
|
Reply By:
|
michka
|
Reply Date:
|
9/27/2006 1:14:27 PM
|
I just wanted to say thanks to Ned. I have been looking all over for a solution to a similar problem that i was having with an ASP page connecting to SQL on a separate server. I added "UID=sa;pwd=;" to my connect string and it worked.
Thanks again.
|