|| is not valid Transact-SQL syntax. You need to user ‘OR’ or ‘AND’
Example
IF @logpath is not null OR @ptd is not null
BEGIN
-- do something
END
|| is not valid Transact-SQL syntax. You need to user ‘OR’ or ‘AND’
Example
IF @logpath is not null OR @ptd is not null
BEGIN
-- do something
END