I have a stored procedure that ideally should be able to accept a list/table of NVARCHARs from the database client. I’m aware of table parameters in SQL Server 2008 but I’m stuck with running SQL Server 2003.
Currently, I’m concatenating the strings with a separator character on the client side, passing the resulting string as a NVARCHAR parameter, and then teasing apart the string on entry to the stored procedure, but this leaves much to be desired.
Have you looked at passing in XML?
So, for XML a little like:
In SQL Server 2005 you could do:
Or SQL Server 2000: