We run client application (in VBA), accessing a SQL 2k Database via odbc. SQL server security accepts authentication in mix modes (both sql authen. and Windows authentication.)
Our odbc DSN configuration is setup to use Windows authentication.
Our applications run fine most 98% of the time. However, ~4 times in a day it comes up the thing: "SQL server error 18452. Login failed for user '(null)'. Not associated with a trusted SQL Server connection". Then came a dialog box to reconnect using Windows Authentication, while the text box for entering "sql server login name/password" was greyed out.
That was random!! Associated with various application attempting to connect to SQL via odbc. Our Windows login has definitely the correct permissions setting to access the required database(s) in question, as it works all the time at the same command line but only fails occasionally.
Well if the error comes up, we have no other solutions but to stop and re-start the SQL server and SQL Server Agent Sevices. Then restart our client application (data loss), and so far, it always runs again.
I'm not too sure if the following ONE event log entry (found in the machine runnning the application & at time of failure) helps or not:
Type: Warning
Source: LicenceService
User: N/A
Computer: <machine name running the application>
Description: Replication of licence information failed because the Licence Logging Service on Server <DomainServerName> could not be contacted.
What is happening? I read this forum. The closest information I have is from
But I couldn't ask someone to promote our SQL server as a domain controller without good reasons and I am not too sure if it helps.
Also, I think there is another solution but not 100% sure. What are your comments: if I modify the application and force it to connect with SQL server authentication. I think the error message 'Not associcated with any trusted connection' only comes up with Windows authentication but never with SQL server authentication. Can someone confirm?
Our odbc DSN configuration is setup to use Windows authentication.
Our applications run fine most 98% of the time. However, ~4 times in a day it comes up the thing: "SQL server error 18452. Login failed for user '(null)'. Not associated with a trusted SQL Server connection". Then came a dialog box to reconnect using Windows Authentication, while the text box for entering "sql server login name/password" was greyed out.
That was random!! Associated with various application attempting to connect to SQL via odbc. Our Windows login has definitely the correct permissions setting to access the required database(s) in question, as it works all the time at the same command line but only fails occasionally.
Well if the error comes up, we have no other solutions but to stop and re-start the SQL server and SQL Server Agent Sevices. Then restart our client application (data loss), and so far, it always runs again.
I'm not too sure if the following ONE event log entry (found in the machine runnning the application & at time of failure) helps or not:
Type: Warning
Source: LicenceService
User: N/A
Computer: <machine name running the application>
Description: Replication of licence information failed because the Licence Logging Service on Server <DomainServerName> could not be contacted.
What is happening? I read this forum. The closest information I have is from
But I couldn't ask someone to promote our SQL server as a domain controller without good reasons and I am not too sure if it helps.
Also, I think there is another solution but not 100% sure. What are your comments: if I modify the application and force it to connect with SQL server authentication. I think the error message 'Not associcated with any trusted connection' only comes up with Windows authentication but never with SQL server authentication. Can someone confirm?