Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL 2K5 - Table-Valued Parameters


SQL 2K5 - Table-Valued Parameters

Author
Message
Kevin Gill
Kevin Gill
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1127 Visits: 356
Lynn Pettis (1/15/2010)
When taking a test, particularly a multiple choice (multiple guess, if you prefer) don't you read the entire question and the answers before actually answering the question?

I do, but in this case (as it's not a test and is actually probably only about 30 seconds of an average day) I tend to read QOTD in the email, click 'Answer this' and then pick my pre-decided answer for questions which appear to be yes/no or another obvious combination - questions such as 'Can you...' or 'is it possible to...', in which case I don't have visibility of the title or the answers, and it's actually probably the title which would have helped most in this case. Plus you read the answers to decide which one answers the question, not to work out what it is that the question is asking you. I've often wished the QOTD in the email included the title and it can't be that hard to include it.

I do like QOTD, and I've learnt a lot from getting things wrong. I just ended up feeling like this one taught me nothing, and was just difficult for the sake of it.

-- Kev

-------------------------------
Oh no!
Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24146 Visits: 37920
I don't read the QotD in the newsletter, I read it on SSC.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Mauve
Mauve
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1244 Visits: 2049
Lynn Pettis (1/15/2010)
I don't read the QotD in the newsletter, I read it on SSC.

And it is best to answer later in the day as the question is usually rewritten, often totally different than what was put in the email.


(PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.
Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24146 Visits: 37920
Mauve (1/15/2010)
Lynn Pettis (1/15/2010)
I don't read the QotD in the newsletter, I read it on SSC.

And it is best to answer later in the day as the question is usually rewritten, often totally different than what was put in the email.


Noticed that I have. Makes comments in discussion slightly confusing at times.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21017 Visits: 18258
Mauve (1/15/2010)
Lynn Pettis (1/15/2010)
I don't read the QotD in the newsletter, I read it on SSC.

And it is best to answer later in the day as the question is usually rewritten, often totally different than what was put in the email.


Sometimes that is true. When rewritten it is generally more precise in the question and the answers also could have changed depending on the morning discussion of the question.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21017 Visits: 18258
Lynn Pettis (1/15/2010)
Mauve (1/15/2010)
Lynn Pettis (1/15/2010)
I don't read the QotD in the newsletter, I read it on SSC.

And it is best to answer later in the day as the question is usually rewritten, often totally different than what was put in the email.


Noticed that I have. Makes comments in discussion slightly confusing at times.


Only slightly confusing?



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Jamie-2229
Jamie-2229
SSCrazy
SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)

Group: General Forum Members
Points: 2955 Visits: 831
Seems so simple, but can be confusing... is this the purpose of symantics?

Jamie
ChiragNS
ChiragNS
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2409 Visits: 1865
confusing question. should have been worded better.

"Keep Trying"
Jamie-2229
Jamie-2229
SSCrazy
SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)

Group: General Forum Members
Points: 2955 Visits: 831
I've often wished the QOTD in the email included the title and it can't be that hard to include it.


I often think of a format change but not necessarily this one. I find I have to slip in and out of the question itself when replying to be sure I'm not missing something stated in the question. It would be nice to see a copy of the question and answer(s) as the first comment for reference purposes.

Jamie
TomThomson
TomThomson
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10626 Visits: 11974
Kevin Gill (1/15/2010)
To my mind, this question could/should have been moderated and edited to make it clearer.

Even though I would have got it wrong had it actually been asking what I thought it was, the fact that it was pretty badly written added an additional, unnecessary level of misdirection that just gets in the way.

The 'correct' answer does not in itself actually answer the question - I have no more idea now than I had ten minutes ago whether table VARIABLES in SQL2K5 can be set to NULL, even though I did actually know that you can't have table parameters in SQL 2K5 (as they would have solved a lot of my problems last year). I skimmed the answers, thought 'I know SQL2K5 can have table variables' (I admit - misreading on my part but I assumed that if it was a 'trick' question then that answer would refer to all parts of the question equally, given that there's only single word answers for the other options) and gave some thought to whether a table VARIABLE can be set to NULL or not. I made my choice, got it wrong, but didn't actually find out the answer.

So can table variables be set to NULL? Perhaps this could be added to the explanation...

I agree that the full answer "table variables cannot be set to null and are not supported as SP parameters in SQL2005" wasn't provided. Of the three options given, only one was actually incorrect, the other two were each correct but not the whole truth, so that the only option for answering was to select one of them at random. So I think that the question with its three optional ansers was rather poor. I got the point anyway because I guessed that the questioner probably would think the lack of an enhancement was more significant than not being able to set table variables to null (which would be pointless thing to be able to do, because there's no concept of a null table in SQL Server so what would a table variable having value null mean?). But I think everyone who picked the wrong correct answer should have gotten a point too.

Tom

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search