Link to home
Create AccountLog in
Avatar of mazher_yasin
mazher_yasinFlag for Pakistan

asked on

SQL Server 2000 to 2005

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.
"
ASKER CERTIFIED SOLUTION
Avatar of chapmandew
chapmandew
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of mazher_yasin

ASKER

user is there but now it show the access denied some store procedure are creeate with the user "dbo" and the remaining one with theuser "mike" but the store procedure with the user "mike" fail to create with the script  access denied error.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.