
CodePudding user response:
The oledb connection string format to write on?Connected with the client first, does the database itself is normal,
CodePudding user response:
The Provider=SQLNCLI10.1; Integrated Security=SSPI; Persist Security Info=False; User ID=""; Initial Catalog=dataname; Data Source=. Initial File Name=""; Server SPNS=""Spelled correctly, please refer to, SQLNCLI10.1 need 2008, you can use your oledb also.
CodePudding user response:
AfxOleInit ()Or CoInitialize (), call the didn't, the program starts in the initialization,