Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Authentication
Message
De
27/02/2003 04:55:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00757860
Message ID:
00758639
Vues:
25
>Is there an easy way to get the WSID from Windows?
Bill,
GetComputerName API function returns the name. sys(0) wraps that and one another to also return the username.
If your intention is to add this to a connectionstring like SQL server connection you could do w/o it too :
lnHandle = SQLStringConnect('Driver=SQL server;Server=servername;'+;
'Trusted_Connection=Yes;')

or:
lnHandle = SQLStringConnect('Driver=SQL server;Server=servername;'+;
'Integrated Security=SSPI;')
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