Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

How to include sp_change_users_login in my program ?

$
0
0
Hi, all, my case is:My program uses login: userabc to execute:... ... ...restore database dbabcsp_change_users_login 'auto_fix', 'userabc'MERGE ... AS T USING ....... ... ...However, userabc doesn't have admin right, so it can't run the sp_change_users_login for itself, thus, my question is:Is it possible, in run time mode, to run sp_change_users_login as a SQL user who has the admin right, eg. sa. ?

Viewing all articles
Browse latest Browse all 6525

Trending Articles