Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection Woes
Message
From
31/10/2005 03:07:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01062794
Message ID:
01063443
Views:
7
IMHO that's the secure one and you should have whenever possible. SQL authentication (username and password) is not the recommended one but still yet the most seen in examples.
Cetin

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform