Article ID: 195262
Article Last Modified on 3/7/2005
DECLARE Integer SQLConfigDataSource IN odbccp32.dll Integer, ;
Integer, String, String
DriverName="Microsoft Visual FoxPro Driver"
IsRemove =SQLConfigDataSource(1,3,DriverName, "DSN=rmtest" + CHR(0)+;
"Description=david test"+CHR(0)+;
"SourceDB=C:\TEMP\data1.dbc"+CHR(0)+;
"SourceType=DBC")
IF IsRemove>0
WAIT WINDOW "Deleted"
ELSE
WAIT WINDOW "Delete failed"
ENDIF
Note that the "Description=david test" portion of the connection string can
be omitted and the datasource will still be removed.
142216 How To Create ODBC Data Sources Using SqlConfigDataSource
Keywords: kbhowto kbdatabase KB195262