Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLDisconnect
Message
De
22/09/2019 07:31:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQLDisconnect
Divers
Thread ID:
01671032
Message ID:
01671032
Vues:
53
Sir I am using these codes to connect sqlserver database
Pubic con1
m.lcCONN1 = 'Driver={sql server}; server=SERVER\SQLEXPRESS;Database=' + m.db1 + '; Uid=sa; Pwd=123'
lcCONN1 = STRT(lcCONN1,CHR(13),'')
lcCONN1 = STRT(lcCONN1,CHR(10),'')
con1 = SQLstringCONNECT(lcCONN1)
Database connects successfully.

Now I try to disconnect database with following codes
Messagebox(m.con1)
SQLDisconnect(m.con1)
Messagebox(m.con1)
Messagebox display same value both time.
It means database does not disconnect.

What I doing wrong?

Please help
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform