Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 SQL Server Profiler
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 12/12/2005 :  07:27:14  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Biswa writes "I used the following at command line to start and connect SQL Profiler at a remote server;

profiler.exe /Sservername /Ddatabase /Usa /Psapassword

The profiler started and connected perfectly.

But when I used the same line inside a batch file and tried to run the batch file, it could not connect and the error message said "Login failed for user 'sa'".

For your information, I used all the environments identical for both the tests.

Is it a bug in SQL Server 2000 ?

I have SP3 applied to my server.


Aged Yak Warrior

752 Posts

Posted - 12/12/2005 :  13:43:10  Show Profile  Reply with Quote
1) The password may be different of that server. Are you sure it's the same server you tested against?
2) Are you sure you don't want to specify a template? You could get quite a bit of useless data back...
3) I'm not sure you need to type ".exe". The extention should not be needed.
4) Try using "/E" instead of "/U" + "/P". Using "/E" will make sure that no passwords are saved to that plain text batch file of yours.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000