Is there a way to see what connection string was used to connect to SQL Server? Or rather what string was used in a failed login attempt.
Many times I deal with complex systems in which I see failures caused by some service failing to log in to SQL. I am guessing the connection string might be wrong, but since I can't see what it was I often have problems figuring out who actually had that problem connecting to be able to reconfigure it and get it fixed.
The errors in the log just say something like 2009-12-01 20:16:31.05 Logon SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 10.124.172.65] 2009-12-01 20:16:31.06 Logon Error: 18452, Severity: 14, State: 1. 2009-12-01 20:16:31.06 Logon Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [CLIENT: 10.234.222.13]
Is there some audit I could enable or a tool to sniff out the connection string so I could figure out what's wrong with the string by analyzing the string itself?