Home > database >  Under Linux C through odbc calls essentially a stored procedure, how to configure the odbc. Ini
Under Linux C through odbc calls essentially a stored procedure, how to configure the odbc. Ini

Time:11-25

https://stackoverflow.com/questions/56333204/sql-server-2017-c-odbc-connection-not-working-on-linux
Using the example of this is my reference, of which the following used in the operation of DNS,
Retcode=SQLConnect (HDBC (SQLCHAR *) "MSSQL, SQL_NTS, (SQLCHAR *)" QuantitateAdmin, "15," SomeRandomPassword1 ", 19).
This step, MSSQL should be/etc/odbc.ini configuration, in
Want to ask, can not configure this file, I'll replace the text content into MSSQL, connect the SQLConnect fail not

CodePudding user response:

SQLRETURN SQL_API SQLDriverConnect (
SQLHDBC HDBC,
SQLHWND HWND,
SQLCHAR * szConnStrIn,
SQLSMALLINT cbConnStrIn,
SQLCHAR * szConnStrOut,
SQLSMALLINT cbConnStrOutMax,
SQLSMALLINT * pcbConnStrOut,
SQLUSMALLINT fDriverCompletion);
By the way, could you consult the function parameters should be how to write, I hope that has nothing to do at the time of connection and configuration files, but I preach in IP database and user name password
  • Related