I'm trying to pass a formatted array to a Stored Procedure and am having problems with the SQL. I know I can use dynamic SQL, but was hoping to avoid using it.
Sample of what I'm trying, it works as dynamic, but not this way:
Any ideas? maybe there's another way?
Thanks!
Sample of what I'm trying, it works as dynamic, but not this way:
Code:
declare @Param nvarchar(200),
@cmd nvarchar(2000)
set @Param='(00175072010,00175184020)'
select * from PropertyTable where pmlinc IN @Param
Thanks!