I am modifying a script that creates Jobs, is it possible to achieving the following;
@command=N'Some Command' + @ANOTHER_VARIABLE
I need to tag the contents of another variable to then end of one being set.
Can anyone explain how i could achieve this, my real life example is
@command=N'Exec dbo.pReport_Update_Unit ''E:\MyData\Target\CSV''',
I need the Path including single quotes to be passed in by a variable set further up the script, i expected my script to work or look something like below;
DECLARE @variable varchar(100)
SET @variable = ''E:\MyData\Target\CSV''
@command=N'Exec dbo.pReport_Update_Unit '+@variable,