vxhughes (6/19/2013)
But suppose you didn't know that, for whatever reason
If you don't know that, then you would be shooting in the dark :exclamation:. When you alter security rights you need to know what you are doing and where you are doing that.
You can use "SELECT DB_NAME()" to get the name of the database you are currently working at.