I am using VC++ 6.0. I am trying to connect to SQL database, but I was not able to connect.
I have checked the Data source name in ODBC manager. Everything looks ok.
Cpp code works fine in XP, but not in windows7. In windows 7, It is not retrieving the connection string properly.
In XP, my connection string looks like this while debugging.
Provider=MSDASQL.1;Extended Properties="DSN=SOSFrontEnd;Description=FrontEnd;UID=;APP=Front End System;WSID=M"
Whereas In Windows 7, connection string looks like this,
Provider=MSDASQL.1;
and I am not aware from where my program fetches the WSID and APP. It is also not hard coded in the program. Can anyone help me from where my program is fetching this data.?
I have tried in all the possible ways. Will be really grateful if anyone help me out this issue?!?!Thanks,