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

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 password

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2008-07-09 : 05:49:53
How is it possible to check if the sa password is blank or not.
I think it is to do with sp_password ?
Thanks

Wanderer
Master Smack Fu Yak Hacker

1168 Posts

Posted - 2008-07-09 : 06:06:58
try and login with blank?

*##* *##* *##* *##*
Chaos, Disorder and Panic ... my work is done here!
Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2008-07-09 : 06:24:49
I have to write a sql query to check this so that if it is blank then we can raise a flag in a table.
Thanks
Go to Top of Page

dexter.knudson
Constraint Violating Yak Guru

260 Posts

Posted - 2008-07-09 : 07:54:40
If the password is NULL, <exec @return = sp_password NULL,'test1', sa>
will set password to 'test1' & @return will be 0. But when this is run again, @return still equals 0 even tho it doesn't do anything.
Go to Top of Page
   

- Advertisement -