1
kudos
spam Kudos Remove

Passing a TABLE variable into dynamic SQL | AdaTheDev

published 642 days, 5 hours, 19 minutes ago posted by AdaTheDevAdaTheDev 651 days, 14 hours, 48 minutes ago
Friday, August 20, 2010 4:48:58 PM GMT Wednesday, August 11, 2010 7:19:46 AM GMT

A question popped up on StackOverflow today, asking how to pass a TABLE variable into a dynamic SQL statement in SQL Server 2008. I've previously blogged about table-valued parameters, comparing the approach of passing in a TABLE of values to a stored procedure to the techniques you'd have had to use in earlier versions of SQL Server (e.g. CSV or XML), but this specific question is worth a quick follow-up.

category: Query | clicked: 1 | | source: www.adathedev.co.uk | show counter code
tags: SQL, SQL Server

No comments yet, be the first one to post comment.

To post your comment please login or signup