SQLDropMyConnection Function | |
Note: This API is now obsolete.
Disconnect the ODBC data source.
Namespace:
XSharp_VOSQLClasses
Assembly:
XSharp.VOSQLClasses (in XSharp.VOSQLClasses.dll) Version: 2.21
Syntax [ObsoleteAttribute]
FUNCTION SQLDropMyConnection(
cMySourceName,
cMyUserID,
cMyPassword
) AS LOGIC CLIPPER
[ObsoleteAttribute]
[ClipperCallingConventionAttribute(new string[] { ... })]
public static bool SQLDropMyConnection(
Usual cMySourceName = default,
Usual cMyUserID = default,
Usual cMyPassword = default
)
Request Example
View SourceParameters
- cMySourceName (Optional)
- Type: Usual
The source for this connection. - cMyUserID (Optional)
- Type: Usual
- cMyPassword (Optional)
- Type: Usual
The password that was used to connect to the source.
Return Value
Type:
Logic
TRUE if a connection is found; otherwise FALSE.
Remarks
If a connection is found, the use count is decremented by 1. When the use count is 1, the source is disconnected.
Examples
The following example connects to WATCOM; then ends the connection:
1FUNCTION TestConnect()
2LOCAL oConn AS SQLConnection
3oConn := SQLGetMyConnection("sample", "dba", "sql")
4? "SRC=",oConn:DataSource
5? "UID=",oConn:UserID
6? "PWD=",oConn:Password
7SQLDropMyConnection("sample", "dba", "sql")
See Also