Query :
rc = SQLDriverConnect((SQLHDBC) hdbc, NULL, (SQLCHAR*)"DRIVER={SQLServer};SERVER=192.168.0.164;DATABASE=Rohit;UID=sa;PWD=sql2005;", SQL_NTS,retconstring,1024,NULL,SQL_DRIVER_NOPROMPT);
i am trying to connect sql server 2008 database named "Rohit" present at LAN ip 192.168.0.164 using SQLDriverConnect function of c++ on linux machine.
its giving error
rc = SQLDriverConnect((SQLHDBC) hdbc, NULL, (SQLCHAR*)"DRIVER={SQLServer};SERVER=192.168.0.164;DATABASE=Rohit;UID=sa;PWD=sql2005;", SQL_NTS,retconstring,1024,NULL,SQL_DRIVER_NOPROMPT);
Kindly guide me where its going wrong?