Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flexible connection string
Message
 
À
29/05/2007 13:31:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01228078
Message ID:
01229115
Vues:
16
>>>>I have the following code to create a SQL Server connection.
>>>>
>>>>text to lcConnectionString textmerge noshow pretext 15
>>>>	DRIVER=SQL Server;SERVER=PAG-SQLSERVER;
>>>>	UID=DonF;APP=Microsoft Visual FoxPro;
>>>>	WSID=TPD284;DATABASE=TRPSurvey;Trusted_Connection=Yes
>>>>endtext
>>>>
>>>>
>>>>The DonF and the TPD284 are specific to me and my PC. How can I query my user's PC to obtain these values for different users and different PCs?
>>>
>>>Remove them from the connection string. The ODBC driver should fill them for you.
>>
>>That works from my PC but not from my user's PC. Perhaps the SQL-Server Administrator needs to loosen the security settings?
>
>You're using trusted_connection. Then the connecting user should be a trusted one (domain\username).
>Cetin

Correct - all you should really need is the driver, server, database, and Trusted_connection parameters. You should be able to eliminate UID and WSID.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform