Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • Reply To: SQL Query with CTE or other...!

    It is easy enough, if you want one column for your answer:

    DECLARE @Questions TABLE ([ID] int, [Question] VARCHAR(64))
    INSERT INTO @Questions VALUES(1,'Q1'),(2,'Q2'),(3,'Q3'),(4,'Q4');

    DECLARE @Answers TABLE ([ID] int, [Answer] VARCHAR(64))
    INSERT...
  • RE: SQL Server 2008 Table Valued Parameters Performance

    Some of the poor performance is down to your xpath and the use of both .vaue and .query.

    This is somewhat quicker. (Though it is never going to be as quick...

Viewing 2 posts - 1 through 2 (of 2 total)