I have to genrate a Store procedures script from SQL sever 2000 when i try to execute these script on Sql Server 2005 it gives the following Error "Msg 15157,Setuser failed because of one of the following reasons: the database principal 'nust' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission. "
Welcome to the forum!. Could you provide the following information: 1) Databases names in 2000. 2) Databases names in 2005. 3) Your script.