Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
maddineni_vr
Starting Member
3 Posts |
Posted - 2008-03-16 : 20:34:05
|
| i am new to sql server. trying to connect sql server using c language in my code. i am trying to connect my data base as below retcode = SQLConnect(hdbc, (SQLCHAR*) "mvr", SQL_NTS, (SQLCHAR*) "mvr1", SQL_NTS, (SQLCHAR*) "", SQL_NTS); it simply returning retcode = -1. It means sql error.How to solve this issue. |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2008-03-16 : 22:33:30
|
| Is sql servcice running? Does your windows account a valid sql login and db user? |
 |
|
|
maddineni_vr
Starting Member
3 Posts |
Posted - 2008-03-17 : 02:45:56
|
quote: Originally posted by rmiao Is sql servcice running? Does your windows account a valid sql login and db user?
yes. sql server is running with the above details. I mean Server name: mvrusername: mvr1password:""This details i got after opening sql analyzer screen. in status bar i found above details. so i mentioned same for my sql connect also.if my window session is active then only i will get above details in analyzer na. So i am thinking so, Let me know if it is not correct.Thanksvenkat |
 |
|
|
|
|
|