Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLDisconnect
Message
From
22/09/2019 07:31:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQLDisconnect
Miscellaneous
Thread ID:
01671032
Message ID:
01671032
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform