Thursday, March 29, 2012
Error 18456
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
This has been occuring since a network wide password
change ( for an employee leaving the company ) and I do
realize that there is some process trying to connect, but
I do not know how to find out what the process is, or
what it is trying to connect as. Is there a way to trace
this information?You may be able to catch this with SQL Profiler and/or a network trace.
The network trace will only work if the connection is coming from a remote
machine.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Have tried the profiler and don't get enough information
to track. Haven't tried a network trace, I will try, but
I don't think it is a remote connection. Thanks for your
help.
Rachel
>--Original Message--
>You may be able to catch this with SQL Profiler and/or a
network trace.
>The network trace will only work if the connection is
coming from a remote
>machine.
>Thanks,
>Kevin McDonnell
>Microsoft Corporation
>This posting is provided AS IS with no warranties, and
confers no rights.
>
>.
>
Tuesday, March 27, 2012
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||
Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||
Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||
Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
|||I had a similar problem after creating a new (SQL) logon. Having restarted the following services it was resolved:SQL Server ($instancename)
SQL Server Browser
SQL Server Express 2005
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
|||
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
sqlError 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||
Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
|||
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||
Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network...
When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) .
I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand?
I'd appreciate any help,
Thanks.
Scott
Can you please post the exact error message from the SQL Server errorlog including the number and state of the error?
Also, to get additional information, please connect the SQL Server Profiler and monitor the Audit Login and Audit Login Failed events in the Security category. Check to see what are the credentials that appear for the login attempt.
You'll probably not be able to login anyway if your credentials are different from the ones you specified in SQL Server, but I would expect to see a different error in that case.
Thanks
Laurentiu
Hi,
switch on the login audits at SQL Server to see which user tries to logon to the server.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
Hi
I am having similar issue.
When using Management Studio, XP clients can connect using widows authentication but windows 2000 clients cannot connect using windows authentication.
Both XP and win2000 can connect using SQL Server authentication.
It replaces my domain name with the workstation number and tries to connect using workstation\user_id rather than domain_name\user_id.
I ran a profiler and this is what I got:
login failed fo ruser ' '. This user is not associated with a trusted SQL Server connection.
|||Are all your machines in the same domain or are they in different domains?
Thanks
Laurentiu
Hi
These are all part of the same domain....
Thanks
|||This is strange - it should work without any problems if the machines are in the same domain and you attempt to connect as a domain user. Are you only seeing this issue with SQL Server? Can you access shares that are exclusively ACLed to a domain user from these 2000 machines?
Thanks
Laurentiu
I am getting the same problem.
MachineA:
Windows XP Pro.
SQL Server 2005, Standard Edition
Machine on Domain XXX
User XXX\User1 is added to Administrators group
MachineB:
Windows XP Pro.
SQL Server 2005, Developer Edition
Machine on Domain XXX
User XXX\User1 is added to Adminitrators group
User1 logs onto MachineA and uses SQL Managment Studio to connect to database engine on MachineA (Local SQL Server), everything works. Then tries to connect to database engine on MachineB everything works.
User1 logs onto MachineB and uses SQL Managment Studio to connect to database engine on MachineB (local SQL Server), everything works. Then tries to connect to database engine on MachineA (remote SQL Server) fails with error:
Login failed for user ''. The user is not associated with a trusted SQL Server connection. (Microsorft SQL Server, Error: 18452)
I have run the SQL Server Surface Area Configuration on both machines and tried to configure them exactly the same.
I have checked Name resolution on both machines, no issues found. I can connect to other resources (\\MachineA\C$ works from MachineB and \\MachineB\C$ works from MachineA).
I am going to try to install the Developer edition on Machine A to see if there is a difference, but I somehow don't think that it will make a difference...
Luis
|||The Edition shouldn't make any difference. I don't know a reason for this behavior. Please open a bug by filling a report on the Product Feedback site at http://connect.microsoft.com/Main/content/content.aspx?ContentID=2220 and we'll continue from there.
Thanks
Laurentiu
Hi...I developed a small application using delphi to run queries on a SQL Server machine. This application worked well on my PC and via the network when I set the database name and server name.
However, as I tried to make this application work on another SQL Server Machine (which has the same database and I have modified the server name in the Install Express)...I get an error
"...not associated with trusted SQL connection"
then goes on to reference my Database object in the data module of the application...
I tried almost everything from hard-coding a username and password in the Database object in the application...to no avail.
Thanks again.
Blackwidow25
|||Have you checked if the other SQL Server machine is using mixed mode authentication?
If it does, try troubleshooting the SQL authentication using Management Studio or sqlcmd.
Thanks
Laurentiu
|||
I think Laurentiu is right, I have found an article from IBM website:
"....Solution
To resolve this issue, follow the instructions to set User Authentication.
SQL Server 2000:
Go to Start > Programs > Microsoft SQL Server > Enterprise Manager
Right-click the Server name, select Properties > Security
Under Authentication, select SQL Server and Windows
The server must be stopped and re-started before this will take effect
SQL Server 2005:
Go to Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio
Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect..."
http://www-1.ibm.com/support/docview.wss?uid=swg21119906
It has solved my problem, so I hope it could be helpful for you too.
|||I am also had these same problem and struggled for long period. Finally I got these forum and succeeded. Thank you very much.
Regards,
Jose
|||I had the same message when trying to connect to a SQL 2005 instance through Windows authentication.
The client was written is VB 2005 and used OLEDB client access (not the SQL native client!)
Switching the server to both SQL and Windows authentication did not solve the problem.
I checked different parameters for the connection string and, finally, found the next one that works:
'Connection information to connect to the database server to retrieve data
'This is connecting to SQL server through OLEDB
Dim ConnectionString As String = ""
ConnectionString = "Provider=SQLNCLI;"
ConnectionString += "Server=YourServerName;Database=YourDatabaseName;"
ConnectionString += "Integrated Security=SSPI;"
Important to note that Integrated Security=True; does not work.
Horia
Error 18210 Backup up SQL Server 2005 Database to network drive
I have 2 different servers that run nightly backup jobs to a network drive using the UNC format. I am noticing the larger databases encountering the following errors on a regular basis
Error: 18210, Severity: 16, State: 1.
'\\fnfssql3\SQLBackups\MNSQL05\<database>.BAK'. Operating system error 64(The specified network name is no longer available.).
BACKUP failed to complete the command BACKUP DATABASE <database>. Check the backup application log for detailed messages.
There are 5 databases on this server all backed up by the same job and 3 of them wortk fine and 2 of them fail so it is not a permissions problem. Have there been any problems with backing up to a network drive in 2005?
Well, backing up to networks drives is not officially *supported*, thats why the browser only display the local drives.
The reason for that and the logical explanation why you shouldn′t do that is, because the network is less reliable than local drives. If you want to make sure the database is backuped to network, you will have to either make sure the windows where the backups are streamed to the network don′t interfer with each other or you use a local backup to a drive and copy the files later over. Thats the most reliable option beside using a NAS / SAN.
Jens K. Suessmeyer
http://www.sqlserver2005.de
|||Network hic-up can do this. One can see such error without sql involved.
Try trapping the error and retry the operation. Also, try backing up locally as suggested by Jens.
|||
Backing up database to a UNC path is fully supported. You must be thinking of running the database from a network drive.
http://support.microsoft.com/kb/304261
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlbackuprest.mspx
|||Oj,
the reason why I put *supported* in stars is, that it is sure supported, but not reliable in terms of just having a network share associated on a UNC share. (I thought he explanation should made that clearer, sorry for the poor explanation :-) ) The reliablity descrease due to your mentioned outages on the network. Having big backup files for the transfer over the network is there not recommended undless you have a SAN or a NAS which ensures more reliablity for the transfer. I often used the UNC path backup too on customer sites but either tried to shape the task to copy the files to different time windows or used a local backup and copied the files over with a mechanism (like xcopy / robocopy) to restart in the case of a connection loss.
Jens K. Suessmeyer
http://www.sqlserver2005.de
Sunday, March 11, 2012
Error 11 in Agent Job
01000] (Message 258) General network error. Check your network documentati
on. [SQLSTATE 08S01] (Error 11). The step failed.
when running an agent job which updates from one Database to another but sti
ll on the same server. If we run the job from T-SQL it works fine. Eventuall
y though the service degenerates and we can't run the job as either an agent
or a T-SQL script and we h
ave to re-build the server.
Any ideas what would cause this problem and how we can rectify it?Please check your Server network utilities. Make sure that TCP/IP and Named
pipes values are not blank by clicking on the Properties.
thanks.
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.|||We have extensively tested the server and found the problem to be with a thi
rd party piece of software, Backup EXEC. Once this is removed the agent job
fires fine.
"akcsl" wrote:
> We're getting an error message ConnectionRead (WrapperRead()). [SQLSTA
TE 01000] (Message 258) General network error. Check your network documenta
tion. [SQLSTATE 08S01] (Error 11). The step failed.
> when running an agent job which updates from one Database to another but still on
the same server. If we run the job from T-SQL it works fine. Eventually though the s
ervice degenerates and we can't run the job as either an agent or a T-SQL script and
we
have to re-build the server.
> Any ideas what would cause this problem and how we can rectify it?
>
Error 11 in Agent Job
when running an agent job which updates from one Database to another but still on the same server. If we run the job from T-SQL it works fine. Eventually though the service degenerates and we can't run the job as either an agent or a T-SQL script and we h
ave to re-build the server.
Any ideas what would cause this problem and how we can rectify it?
Please check your Server network utilities. Make sure that TCP/IP and Named
pipes values are not blank by clicking on the Properties.
thanks.
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.
|||We have extensively tested the server and found the problem to be with a third party piece of software, Backup EXEC. Once this is removed the agent job fires fine.
"akcsl" wrote:
> We're getting an error message ConnectionRead (WrapperRead()). [SQLSTATE 01000] (Message 258) General network error. Check your network documentation. [SQLSTATE 08S01] (Error 11). The step failed.
> when running an agent job which updates from one Database to another but still on the same server. If we run the job from T-SQL it works fine. Eventually though the service degenerates and we can't run the job as either an agent or a T-SQL script and we
have to re-build the server.
> Any ideas what would cause this problem and how we can rectify it?
>
Error 11 in Agent Job
when running an agent job which updates from one Database to another but still on the same server. If we run the job from T-SQL it works fine. Eventually though the service degenerates and we can't run the job as either an agent or a T-SQL script and we have to re-build the server.
Any ideas what would cause this problem and how we can rectify it?Please check your Server network utilities. Make sure that TCP/IP and Named
pipes values are not blank by clicking on the Properties.
thanks.
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.