CRecordset open Dsn Diloag VC++

Sqlcon.Format(_T("DSN=hassan;UID=has;PWD=123;APP=Microsoft\x00ae Visual Studio\x00ae 2005;WSID=DETECTIVEPC;DATABASE=stock"));
database.OpenEx(Sqlcon,CDatabase::noOdbcDialog);

This is the code for opening connection and, but i show me diloag for selecting DSN??
Topic archived. No new replies allowed.