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??