Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection to sql server
Message
 
À
12/04/2006 09:28:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01112871
Message ID:
01113286
Vues:
16
Hi Robert,
* please, don't run this example on production server :-)
lihdbc=sqlstringconnect("driver={sql server}; server=xxxx; database=xxx ;uid=xxx ;pwd=xxx")
=sqlexec(lihdbc,"execute sp_who") && get list of connection

SCAN ALL
     luSPID=SPID && get ID
     =sqlexec(lihdbc,"kill ?luSPID") && kill him
ENDSCAN
=sqldisconnect(lihdbc)
MartinJ

>there is a way to get how many connection i have on my sql server ?
>
>
>
>also can i get this information via foxpro ?
>
>
>
>also can i disconnect used via foxpro ???
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform