Home > Software engineering >  VC 2008 SQLServer2008 link your database is not normal
VC 2008 SQLServer2008 link your database is not normal

Time:09-23

Hr=m_pConnection - & gt; Open (" Provider=SQLOLEDB. 1; Persist Security Info=TRUE; User ID=sa; Initial Catalog=master; Data Source=YZ001 ", "sa", "111111", adModeUnknown);//OK
Link the system database to

Hr=m_pConnection - & gt; Open (" Provider=SQLOLEDB. 1; Persist Security Info=TRUE; User ID=sa; Initial Catalog=test; Data Source=YZ001 ", "sa", "111111", adModeUnknown);//links not
Link to create your own database connection not, is there a problem where I write??
  • Related