MDAC 2.5 SDK - ODBC Samples


 

Convert DSN Demo Sample

The Convert DSN Demo uses the ODBC API to enable you to convert User and System DSNs to File DSNs. Convert DSN creates File DSN pointers to machine DSNs by iterating through all User and System DSNs in the Windows registry and creating a pointer to each.

Note   Convert DSN Demo is provided as a sample.

Features

The Convert DSN Demo iterates through all User and System DSNs and makes a version of the data source name acceptable for use as a file name. Then the Convert DSN Demo expands the name into a full, valid file name and writes the "DSN=" keyword into the File DSN.

Limitations

Convert DSN Demo does not log the progress of the conversion nor does it indicate when the conversion is complete.