Link to home
Start Free TrialLog in
Avatar of ymw1
ymw1

asked on

SQL Server Direct Access

Right now, I'm using CDatabase & CRecordset for ODBC programming. But that's require that ODBC DSN must be set.

Is there anyway that we can directly retrieve recordset from the SQL server without setting the DSN?

Thanks
Avatar of jonalee
jonalee

If you want to use ODBC, then you HAVE to use DSN. The access the MS SQL Server, the only simple way is use ODBC (Also you can use ADO, RDO, or JDBC::ODBC. But they all established upon ODBC)
Yes, there is really another way to access the SQL Server. Directly call it through it's TCP/IP or namepipe protocol.
There's no open document for this. You need to try it yourself.
I do not know why you can not use DSN?

Avatar of ymw1

ASKER

Becos I have hundreds of client PCs! And I have to use MFC C++ :(

And the client applications need to connect to the SQL server.....

This means to you installing DSN on every client?
ASKER CERTIFIED SOLUTION
Avatar of jonalee
jonalee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial