I need to pass an entire WHERE clause into a stored procedure. Did a search and found someone recommended using sp_sqlexec. I looked it up in Books Online and the reference said:
"Removed; no longer available. Remove all references to sp_sqlexec."
I am using SQL Server 2000 in Windows XP. Can anyone suggest how to pass in an entire WHERE clause to a stored procedure?
"Removed; no longer available. Remove all references to sp_sqlexec."
I am using SQL Server 2000 in Windows XP. Can anyone suggest how to pass in an entire WHERE clause to a stored procedure?