4

I am trying to log perfmon log (Windows Server 2008) to SQL Server 2005 (Windows Server 2003) using dsn (SQL Server authentication).

On start perfmon counter i am getting error:

"Call to SQLAllocConnect failed with [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''. The user is not associated with a trusted SQL Server connection.."

Please help.

2

Make sure that Perfmon is attempting to connect via a domain account, and not a local account (unless the SQL Server is installed locally).

You can also try giving the computer's domain account rights within SQL Server. In the SQL Server add a new login for DOMAIN\ComputerName$. The $ is important, so don't leave that out.

0

This error message normally means that your SQL Server has been configured to operate in "Windows Authentication Mode (Windows Authentication)" and doesn't allow the use of SQL accounts.

I guess you'll have to change the Authentication Mode of the SQL server from "Windows Authentication Mode (Windows Authentication)" to "Mixed Mode (Windows Authentication and SQL Server Authentication)".

If you want to use a "native" SQL Server user you'll have to change the server to Mixed Authentication.


It appears that Perfmon is not running under the credentials you specified, but as Network Service instead.

To solve this the service must run as a Windows user that has SQL Server credentials associated.

You can find some further information in this thread on a Microsoft discussion board.

  • Thanks for reply. Sql server is configured as "Mixed mode" only. I am running perfmon in administrator account. – Kartik M Jan 27 '11 at 10:08
0

In my case the problem was the missing DSN in the remote machine targeted by PerfMon. You must first login and configure both the 'DSN' and 'Data Collector Set' in the machine to be monitored by PerfMon (the remote machine). Then you can open the Perfmon in your local machine and change the target to the remote machine and start monitoring.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.