all groups > sql server odbc > april 2005 >
You're in the

sql server odbc

group:

Successful connection with invalid UserId


Successful connection with invalid UserId rbkaimal NO[at]SPAM hotmail.com
4/22/2005 2:52:33 AM
sql server odbc:
Hi,
In my application , the connection to SQLServer is established
through a DSN name, UserId and Password(both UsrId and Password are
non empty) . The "SQLConnect" function is used for this purpose. The
problem is that the connection to the Database is success when I give
an empty UserId. But this problem is not there when the UserId is
invalid(non empty).In all the cases except for empty UserId , the
connection works as expectd.

Why is it connecting for empty UserId?

Is it because that default windows authentication is used for
connection when UserId is empty?

If so is there any way to avoid this (through a C/C++ program)?

pls help

Thanks
Re: Successful connection with invalid UserId Sue Hoegemeier
4/28/2005 7:00:20 PM
Yes...it's just using windows authentication.
Make sure you have a value for the user name when calling
SQLConnect. Don't call it without the value.

-Sue

On 22 Apr 2005 02:52:33 -0700, rbkaimal@hotmail.com (Kaimal)
[quoted text, click to view]
AddThis Social Bookmark Button