CDatabase m_database; bool p=m_database.Open(_T("myDatabase "),0,0,_T("ODBC;UID=user1"),1);
server type: Database Enginge<br /> server name: my-pc\SQLEXPRESS<br /> authentication: Windiws Authentication <br /> user name: my-pc\user1
CRecordset m_recordset(&m_database); m_recordset.Open (CRecordset :: snapshot, _T("select * from myTable"), CRecordset::readOnly);
CRecordset :: snaphot
m_recordset.Open (CRecordset::readOnly, _T("select * from myTable"));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)