sync
This commit is contained in:
9
SSRS - change subscription owner.sql
Normal file
9
SSRS - change subscription owner.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
USE [ReportServer$PGCREP]
|
||||
|
||||
DECLARE @OldUserID uniqueidentifier
|
||||
DECLARE @NewUserID uniqueidentifier
|
||||
SELECT @OldUserID = UserID FROM dbo.Users WHERE UserName = 'centralpharma\C.Dorion-adm'
|
||||
SELECT @NewUserID = UserID FROM dbo.Users WHERE UserName = 'CENTRALINFRA\ucilmlardf_adm'
|
||||
|
||||
SELECT @OldUserID, @NewUserID
|
||||
--UPDATE dbo.Subscriptions SET OwnerID = @NewUserID WHERE OwnerID = @OldUserID
|
||||
Reference in New Issue
Block a user