April 23, 2012 at 10:34 pm
Comments posted to this topic are about the item Login Password Policy
May 9, 2012 at 11:45 pm
when i try to run this script i am having an error when i try this on SQL 2008
any idea what's wrong ?
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '?'.
May 10, 2012 at 6:43 am
It's not the code. I have run into this problem a few times when I copy code from this site. I seems that some Unicode characters get inserted in the code. If you try to save script from the query window in Management Studio I get a warning "Some Unicode characters in this file could not be saved in the current codepage."
It seems that what LOOK like blank spaces are actually some unprintable character. If you delete the spaces on the lne indicated in the error and try it again you will get the same error but on a different line.
Very frustating. What I end up doing is to highlight JUST ONE of the "blank" spaces and run Find and Replace with a real blank space. There is probably a better way.
May 10, 2016 at 1:55 pm
Thanks for the script.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply