Comme dans OpenQuery
DECLARE @name varchar(40), @SQL NVARCHAR(MAX)
SET @name = 'Bulbul';
SET @SQL = 'SELECT * FROM OPENQUERY(LINKSERVER, ''SELECT * FROM CONTACT WHERE FIRSTNAM LIKE ''''%' +@name+ '%'''''')';
EXEC sp_executesql @SQL;
Code with bulbul