I have created one dialog based application using MFC application. Here i created one List Control so I get the data from SQL Server 2008 Table. i connected the database using this
Code:
CStringSqlString;
CString sDriver ="SQL Server";
CString sDsn;
sDsn.Format("Driver={SQL Server};Server=MY_SERVER143;Database=Srikanth;Uid=sa;Pwd=Srikanth@123");
So i want the table data (table name is employdetails that is under Srikanth database).How to get the EmployDetails in ListControl usinng MFC application.
Please help me.
Thanks in Advance.