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.
Author |
Topic |
tracy5436
Yak Posting Veteran
50 Posts |
Posted - 2011-05-13 : 12:05:56
|
Hi,Is it possible to disable the change of password when unlocking an account in SQL ? |
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2011-05-13 : 18:16:30
|
Are you trying to prevent someone from changing the password of an existing Login? I don't know of a way to prevent this directly but you could implement a server level trigger on the ALTER_LOGIN event and specify your own logic:[CODE]CREATE TRIGGER [login_changes]ON ALL SERVER FOR ALTER_LOGINASBEGINif <Your logic> ROLLBACK TRANSACTIONEND[/CODE]=======================================Elitism is the slur directed at merit by mediocrity. -Sydney J. Harris, journalist (1917-1986) |
 |
|
|
|
|