Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Connection String Question
Message
 
 
À
11/06/2009 16:46:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01405364
Message ID:
01405369
Vues:
69
>I know how to create an ODBC connection string and include a fixed WSID reference in the string but I want the WSID to be picked up automatically at runtime from the computer that the program is being run on. The reason I need this is so I can look at the MS SQL Server Enterprise Manager and see any hung processes and be able to identify the workstation where the program is hung..

You can use SYS(0) to get computer name and insert it into the connection string
? STREXTRACT(SYS(0), "", " #")
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform