Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > SQLClose FunctionThis custom VB function disconnects from an ODBC data source connection that was established by SQLOpen. NOTE: Siebel VB SQLxxxx functions are supported for non-Unicode databases only. SyntaxReturnsA variant having one of the following values: UsageFor information about named arguments, read Named Arguments and Call Statement. If you invoke the ODBC function "SQLClose" with an invalid argument (for example, SQLClose(0) or a variable argument without an initialized value), the function responds with the undocumented return code of -2, which indicates an invalid data source connection. CAUTION: This function, as well as the other SQL functions available in Siebel VB, should not be used to query the underlying database. Use the Siebel Object Interfaces to query Siebel data. Use the SQL functions only to query non-Siebel data. ExampleThis example opens the data source named SblTest, gets the names in the ODBC data sources, and closes the connection. Sub Button_Click See AlsoSQLError Function |
Siebel VB Language Reference |