Difference between revisions of "SQLDISCONNECT()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Disconnect from a data source | Disconnect from a data source | ||
− | |||
==Syntax== | ==Syntax== | ||
SQLDISCONNECT(<nStatementHandle>) | SQLDISCONNECT(<nStatementHandle>) | ||
− | |||
==See Also== | ==See Also== | ||
[[CREATE CONNECTION]], [[SQLCANCEL()]], [[SQLCOLUMNS()]], [[SQLCOMMIT()]], [[SQLCONNECT()]], [[SQLERROR()]], [[SQLEXEC()]], [[SQLGETPROP()]], [[SQLMORERESULTS()]], [[SQLPREPARE()]], [[SQLROLLBACK()]], [[SQLSETPROP()]], [[SQLSTRINGCONNECT()]], [[SQLTABLES()]] | [[CREATE CONNECTION]], [[SQLCANCEL()]], [[SQLCOLUMNS()]], [[SQLCOMMIT()]], [[SQLCONNECT()]], [[SQLERROR()]], [[SQLEXEC()]], [[SQLGETPROP()]], [[SQLMORERESULTS()]], [[SQLPREPARE()]], [[SQLROLLBACK()]], [[SQLSETPROP()]], [[SQLSTRINGCONNECT()]], [[SQLTABLES()]] | ||
− | |||
==Description== | ==Description== | ||
Line 15: | Line 12: | ||
The SQLDISCONNECT() function operates on the data source specified by <nStatementHandle>. | The SQLDISCONNECT() function operates on the data source specified by <nStatementHandle>. | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 23: | Line 19: | ||
|- | |- | ||
|} | |} | ||
− | |||
====Return values:==== | ====Return values:==== | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 38: | Line 32: | ||
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 50: | Line 43: | ||
endif | endif | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Revision as of 11:13, 11 December 2012
Purpose
Disconnect from a data source
Syntax
SQLDISCONNECT(<nStatementHandle>)
See Also
CREATE CONNECTION, SQLCANCEL(), SQLCOLUMNS(), SQLCOMMIT(), SQLCONNECT(), SQLERROR(), SQLEXEC(), SQLGETPROP(), SQLMORERESULTS(), SQLPREPARE(), SQLROLLBACK(), SQLSETPROP(), SQLSTRINGCONNECT(), SQLTABLES()
Description
The SQLDISCONNECT() function is used to disconnect from a data source.
The SQLDISCONNECT() function operates on the data source specified by <nStatementHandle>.
Keywords | Description |
---|---|
nStatementHandle | The workarea in which the gateway data source is open. Specifying 0 causes all active connections to be disconnected. |
Return values:
Return Value | Description |
---|---|
1 | Disconnection completed successfully |
–1 | Connection error |
–2 | Environment error |
Example
nStatHand=SQLSTRINGCONNECT("mysql@linux1:user1/pass1-database1.tcpip",.T.) if nStatHand < 1 dialog box [Could not connect] else dialog box [Connected] SQLDISCONNECT(nStatHand) endif
Products
Lianja, Lianja Server