SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

AskSQLTeam
Ask SQLTeam Question

USA
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.

Thanks"

SQLServerDBA_Dan
Aged Yak Warrior

USA
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  
 New 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.05 seconds. Powered By: Snitz Forums 2000