Home > Software engineering >  Quote us wrong SQL server connection
Quote us wrong SQL server connection

Time:10-07

C + + to connect SQL server quote error lack comraise. CPP

The comraise. CPP is how to deal with

CodePudding user response:

Should be ok with database you missing files did you forget to add the CPP to engineering or accidentally deleted by you

CodePudding user response:

What is the mode of links do you use?

CodePudding user response:

Are you compile error, compile time will prompt the lack of documents

CodePudding user response:

I know that is the lack of file but don't know what exactly is this what is the role

CodePudding user response:

Normal use ADO

CodePudding user response:

reference 5 floor chenku11 reply:
normal use ADO
ADO link only need to configure the string
Nothing to do with the file
At least I don't know this file

CodePudding user response:

: : CoInitialize (NULL);
_ConnectionPtr m_pConnection (" ADODB. Connection ");

M_pConnection. CreateInstance (" ADODB. Connection ");

_bstr_t strConnect="Provider=SQLOLEDB;
Server=HCH;
The Database=mytest;
Uid=sa; The PWD=sa; ";

M_pConnection - & gt; Open (strConnect, ""," ", adModeUnknown);

An empty win32 project with this a few words of error not normal

CodePudding user response:

Did you import MSADO15. DLL
  • Related