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 2008 Forums
 Transact-SQL (2008)
 Testing a Login From Command Line
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbates99
Constraint Violating Yak Guru

285 Posts

Posted - 06/12/2012 :  15:14:55  Show Profile  Reply with Quote
I'm trying to test a login whose password is "supposedly" blank.

This is the syntax I used from a command prompt:

osql -S EGNSOCWCOM09 -U XJNETMASTER -P -Q "select * crewsked.dbo.UR_Users"

Do I have the password part coded correctly for a blank password?

Thanks, John

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 06/12/2012 :  15:17:17  Show Profile  Visit tkizer's Homepage  Reply with Quote
I can't remember, but you can easily verify if that's the password by testing it with SSMS.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
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.03 seconds. Powered By: Snitz Forums 2000