The information in this article applies to:
SUMMARYThis article describes how to programmatically remove an existing ODBC datasource instead of manually removing it through the ODBC Administrator. You can use the SqlConfigDataSource function in Odbccp32.dll for this purpose. MORE INFORMATIONThe following sample code demonstrates how to use this API function to remove a Visual FoxPro Database datasource.
Note that the "Description=david test" portion of the connection string can
be omitted and the datasource will still be removed.
REFERENCESTo programmatically create a data source, please see the following article in the Microsoft Knowledge Base: Q142216 HOWTO: Create ODBC Data Sources Using SqlConfigDataSource Additional query words:
Keywords : kbDatabase kbODBC kbVFp300 kbVFp300b kbVFp500 kbVFp500a kbVFp600 |
Last Reviewed: July 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |