![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have spent the best part of 4 days trying to connect to SQL 2005 express from an winforms app! Yes , I have checked surface config and TCP/IP blah blah ... I have trawled the net and spent countless hours on MSDN and many have tried to help. I have changed the passwords to strongly typed... I have recreated the login a zillion times,mapped to different databases , checked firewall settings, switched off firewall...tried different database roles, run every possible sp I can find.....attached the database using the connection string, attached using management studio and changing the connection string back, tried every possible connection string I can find, pored through the logs at evry turn ... Then i did it all again and again and again. Has anybody managed to connect from an application ever.. (excuse the cynicysm but I am at wits end) The best error has to be this one proclaiming success and failure all at the same time: 2006-11-28 22:00:24.46 Logon Login succeeded for user 'FJUser'. Connection: non-trusted. [CLIENT: 192.xxx.x.x] 2006-11-28 22:00:24.46 Logon Error: 18456, Severity: 14, State: 16. 2006-11-28 22:00:24.46 Logon Login failed for user 'FJUser'. [CLIENT: 192.xxx.x.x] Makes my confusion a little more bearable :-) |
#3
| |||
| |||
|
|
I have spent the best part of 4 days trying to connect to SQL 2005 express from an winforms app! Yes , I have checked surface config and TCP/IP blah blah ... I have trawled the net and spent countless hours on MSDN and many have tried to help. I have changed the passwords to strongly typed... I have recreated the login a zillion times,mapped to different databases , checked firewall settings, switched off firewall...tried different database roles, run every possible sp I can find.....attached the database using the connection string, attached using management studio and changing the connection string back, tried every possible connection string I can find, pored through the logs at evry turn ... Then i did it all again and again and again. Has anybody managed to connect from an application ever.. (excuse the cynicysm but I am at wits end) The best error has to be this one proclaiming success and failure all at the same time: 2006-11-28 22:00:24.46 Logon Login succeeded for user 'FJUser'. Connection: non-trusted. [CLIENT: 192.xxx.x.x] 2006-11-28 22:00:24.46 Logon Error: 18456, Severity: 14, State: 16. 2006-11-28 22:00:24.46 Logon Login failed for user 'FJUser'. [CLIENT: 192.xxx.x.x] Makes my confusion a little more bearable :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |