Abhijit
Abhijit

Reputation: 63737

Where is ConfigDSN defined?

I was trying to use ConfigDSN but received a linker error

error LNK2019: unresolved external symbol _ConfigDSNW@16 referenced in function ....

I checked exported symbols of the following odbc libraries under system32 but none of them have the definition of ConfigDSN

 odbc32.dll
 odbc32gt.dll
 odbcbcp.dll
 odbcconf.dll
 odbccp32.dll
 odbccr32.dll
 odbccu32.dll
 odbcint.dll
 odbctrac.dll

Upvotes: 1

Views: 462

Answers (1)

Trevor
Trevor

Reputation: 729

ConfigDSN is not defined by the driver manager which is made up of the ODBC DLLs you are looking at in the System32 folder. It is defined by each individual driver (or their setup DLLs) and is loaded and called by the driver manager when you call SQLConfigDataSource.

The DLL which defines SQLConfigDataSource is odbccp32.dll.

Upvotes: 1

Related Questions