create proc temp @value nvarchar(max) as begin DECLARE @sql nvarchar(max) set @sql = N'Select * from dbo.Categories where CategoryName in (' + @value +')'; print @sql exec sp_executesql @sql end
temp @value = '''Beverages'',''Condiments'''
value = "'''"+cb1.Text + "'',''" +cb2.Text + "'''"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)