Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection Woes
Message
De
28/10/2005 12:39:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01062794
Message ID:
01063033
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform