Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
A parameter is a list, or string, of ints.Doing a simple select using IN but this breaks....DECLARE @test VARCHAR(256)SET @test = '1303, 1308, 1309, 1305, 1311, 1307, 1313, 1306, 1312 'SELECT * FROM myTable WHERE myIntField IN (@test)Syntax error converting the varchar value '1303, 1308, 1309, 1305, 1311, 1307, 1313, 1306, 1312 ' to a column of data type int.Should there be a convert here?Thanks,Zath