简体   繁体   中英

Specified driver could not be loaded due to system error 8 (SQL Server) error

I get Specified driver could not be loaded due to system error 8 (SQL Server) error while trying to access SQL Server 2005 from C++ code. Basically I am developing an ISAPI dll in Visual C++, from which I am making a SQL DB call to pick certain information based on few error conditions. Following is the code which I am using to open the DB connection:

CDatabase DBConnection;
DBConnection.OpenEx("Driver={SQL Server};Server=10.104.20.14;Database=Test;Trusted_Connection=yes;", CDatabase::openReadOnly | CDatabase::noOdbcDialog);

CRecordset RecSet(&DBConnection);

RecSet.Open(CRecordset::forwardOnly,_T("{CALL SP_CheckForInfo('" + URLtoCheck +"')}"));

Any idea what's causing this issue?

Specified driver could not be loaded due to system error 8 (SQL Server)

Is this the only error description you are getting? Usually there is more.

Did you have this problem before? Is this the first time you are trying to connect?

What part of code is causing this error?

Sytem error 8 means: Not enough storage is available to process this command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM