Skip to main content
Question

ODBC API Calls in Visual COBOL Using Visual studio 2022

  • December 9, 2025
  • 1 reply
  • 21 views

Divya Koduri

I am trying to call the direct ODBC API from a Visual COBOL program using Visual Studio 2022. I want to know if there are any specific configuration changes required in Visual studio 2022 to make ODBC calls work correctly, especially when linking DLLs that are not part of the same solution. Also, if anyone has a small sample COBOL program that demonstrates how to call ODBC APIs directly (for example: SQLConnect, SQLExecDirect, SQLDisconnect), it would be very helpful. Could you please guide me on the correct setup and share any sample code?

1 reply

Martyna Uleviciute

Hey ​@Divya Koduri, thanks for reaching out! I have moved your question to this Visual COBOL-dedicated forum, since the folks here are more equipped to help you out. Cheers!