Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flexible connection string
Message
 
 
À
23/05/2007 17:42:44
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:
01228079
Vues:
24
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform