Marco V (12/16/2011)
anyways his typo in the alter login
ALTER USER ram WITH LOGIN = ram
Yes indeed. It was an error in the code that I posted, but I did make clear that I was doing it from memory. The OP got a syntax error but made no attempt to find out what the correct syntax should be. That's why I don't post back with the correct syntax - the best way for most people to learn is by doing it for themselves.