all groups > sql server connect > january 2006 >
You're in the

sql server connect

group:

Problem to pass UID and PWD in SQLConfigDataSource using MFC



Problem to pass UID and PWD in SQLConfigDataSource using MFC Anis Khalife
1/4/2006 3:23:11 AM
sql server connect: hi..
SQLConfigDataSource( NULL , ODBC_ADD_DSN ,
"SQL Server" ,
"DSN=DBVoip\0"
"SERVER=10.11.40.221\0"
"ADDRESS=10.11.40.221\0"
"Trusted_Connection=no\0"
"UID=sa\0"
"PWD=mis\0"
"DATABASE=VOIP\0\0"
);

not working...
without UID and PWD it is working fine...

plz help
Re: Problem to pass UID and PWD in SQLConfigDataSource using MFC Sue Hoegemeier
1/9/2006 2:36:59 PM
By not working, what do you mean? What is the exact error
message?
If you are trying to use a SQL login, you also need to make
sure that SQL Server is configured to allow SQL logins - not
just Windows Authentication.

-Sue

On 4 Jan 2006 03:23:11 -0800, "Anis Khalife"
[quoted text, click to view]
Re: Problem to pass UID and PWD in SQLConfigDataSource using MFC Arnie Rowland
7/14/2006 12:07:40 PM
Thank you for the information.

--
Arnie Rowland
"To be successful, your heart must accompany your knowledge."



"eldivolove" <eldivolove.2ay8hz@no-mx.forums.yourdomain.com.au> wrote in
message news:eldivolove.2ay8hz@no-mx.forums.yourdomain.com.au...
[quoted text, click to view]

Re: Problem to pass UID and PWD in SQLConfigDataSource using MFC eldivolove
7/14/2006 1:59:47 PM

It is my understanding that the API does not support UID and PWD. Thes
values are not stored and therefore must be entered into the connectio
each time you use the DSN

--
eldivolov
-----------------------------------------------------------------------
eldivolove's Profile: http://www.dbtalk.net/m53
View this thread: http://www.dbtalk.net/t15584
AddThis Social Bookmark Button