Nik writes "Is it possible to perform the following without having to use sp_executesql?CREATE PROCEDURE my_stored_procedure @RowIds nvarchar(600)AS DECLARE @Sql nvarchar(700) SET @Sql = N'Select * From MyTable Where MyTable.RowId In (' + @RowIds + ')' EXECUTE sp_executesql @SqlGOIs this already the best way to do it or could I use something along the lines of (which obviously doesn't work as it is):CREATE PROCEDURE my_stored_procedure @RowIds nvarchar(600)AS Select * From MyTable Where MyTable.RowId In (@RowIds)GO
TIANikki LongSystems DeveloperMeniscus Systems Ltd"[/i]