DECLARE @Criteria varchar(255) SET @Criteria = '%columns%' SELECT * FROM sysobjects WHERE name LIKE @Criteria
Declare @V varchar(10) Set @V = '%Poopkin%' Select * from TCards Where UserName Like @V или Select * from TCards Where UserName Like '%'+@V+'%'