Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flexible connection string
Message
 
To
29/05/2007 13:31:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01228078
Message ID:
01229115
Views:
20
>>>>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!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform