Help: Using ODBC in NT Service 
Author Message
 Help: Using ODBC in NT Service

Hi there,

I am writting an Windows NT service program. The program is supposed
to access a SQL servr via ODBC in the background. However, it seems
that I cannot opne a CDatabase class when in a servce - every time
the program tried to use the following:

        CDatabase datasource;
        datasource.OpenEx(_T("DSN=SQL Server; UID=sa;
                PWD=;"),CDatabase::noOdbcDialog);

I have an exception. Am I missing something here?

I would appreciate if you knowledgable can help me out what causes
this problem and how to solve it.

Thank you very much,

Steve Zhang



Tue, 07 Sep 1999 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Using MFC (ODBC) in windows NT service

2. Java program using ODBC as an NT Service

3. Using ODBC within an NT Service application

4. ODBC NT Service..Help!!!

5. NT 4.0 Service Pack 3 broke ODBC!

6. NT Service + ODBC

7. NT Service + ODBC

8. Accessing Sybase ODBC through NT service

9. .EXE running from AT service on NT won't run with ORACLE ODBC

10. NT service + VB + ODBC !?

11. NT service + VB + ODBC !?

12. Using MFC DB support in NT Service


 
Powered by phpBB® Forum Software