Below command is working fine on command prompt and ps but giving error via t-sql, is there any solution around this ?
set @command= \'relog\'+\' "\'+@locto