Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection Woes
Message
 
To
28/10/2005 12:39:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01062794
Message ID:
01063069
Views:
10
Is there any reason to not have 'Trusted_connection=yes' in my
connection string by default?



>>I'm creating connections to 2 databases, each on different servers.
>>
>>The first connection works. The second errors with:
>>Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.
>>Reason: Not associated with a trusted SQL Server connection.
>>
>>When I look at login 'sa' in the Enterprise Manager, the password is filled in
>>with a 10 character string.
>>
>>I did not set it, so I'm not sure whats going on.
>>
>>I'd like it to take the Windows login info.
>>
>>Can someone point me in the right direction?
>>
>>Thanks
>
>Kevin,
>It means you set SQL server to use windows authentication only and the server you're connecting to doesn't trust the windows account you use.
>
>Can you connect with this?
>
>lnHandle = SQLStringConnect('Driver=SQL server;server=servername;Trusted_connection=yes')
>? m.lnHandle
>SQLDisconnect(m.lnHandle)
>
>Cetin
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform