hii all,

im trying to connect remote sq server using in c++ using CDatabase class. im getting an sql error

Connection Failed
SQL State '01000'
SQL Server Error 14:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Invalid Instance()).
SQL State '08001'
Connection Failed
SQL Server Error 14:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection

the server which i am trying to connect is timed out on ping..

any suggestions

Regards;
Kunal

Recommended Answers

All 3 Replies

any suggestions

Post code, we're not clairvoyant.

hii,

i cannot connect to the ms sql server.... i am using CDatabase class for connection the error message i am getting is what i hv posted above..

pls help me with the error message, even if i try to ping the server ip address it says timeout and fails..

Regards:
Kunal

hii,

i cannot connect to the ms sql server.... i am using CDatabase class for connection the error message i am getting is what i hv posted above..

pls help me with the error message, even if i try to ping the server ip address it says timeout and fails..

Regards:
Kunal

If you can't ping the server your code and error messages are pretty irrelevant. You either have a network problem or the server is down.

Post code, we're not clairvoyant.

Good point though:D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.