I am trying to create a stored procedure or SQL Job to run the following command.
use Master
GRANT ALTER ANY LOGIN TO "domain\login"
GO
I can run the above command just find manually from a SQL Query but when I try to creat a SQL Job and run the command I get a syntax error? Does anyone know why I can not create a SQL Job or a Stored procedure to run the above command? I am using SQL Server 2008 R2.
use Master
GRANT ALTER ANY LOGIN TO "domain\login"
GO
I can run the above command just find manually from a SQL Query but when I try to creat a SQL Job and run the command I get a syntax error? Does anyone know why I can not create a SQL Job or a Stored procedure to run the above command? I am using SQL Server 2008 R2.