Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««123»»

SQL 2K5 - Table-Valued Parameters Expand / Collapse
Author
Message
Posted Friday, January 15, 2010 10:57 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 5, 2014 7:51 AM
Points: 1,105, Visits: 300
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!
Post #848456
Posted Friday, January 15, 2010 11:08 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 23,226, Visits: 31,916
I don't read the QotD in the newsletter, I read it on SSC.



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)
Post #848460
Posted Friday, January 15, 2010 11:42 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, July 24, 2014 11:03 AM
Points: 1,182, Visits: 1,970
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.
Post #848474
Posted Friday, January 15, 2010 12:11 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 23,226, Visits: 31,916
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.



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)
Post #848501
Posted Friday, January 15, 2010 5:28 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 10:24 AM
Points: 21,620, Visits: 15,279
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


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #848630
Posted Friday, January 15, 2010 5:29 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 10:24 AM
Points: 21,620, Visits: 15,279
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


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #848631
Posted Saturday, January 16, 2010 4:56 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, June 28, 2014 8:50 AM
Points: 2,649, Visits: 766
Seems so simple, but can be confusing... is this the purpose of symantics?

Jamie
Post #848715
Posted Monday, January 18, 2010 5:20 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, July 15, 2014 4:53 AM
Points: 2,366, Visits: 1,844
confusing question. should have been worded better.

"Keep Trying"
Post #849096
Posted Monday, January 18, 2010 5:42 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, June 28, 2014 8:50 AM
Points: 2,649, Visits: 766
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
Post #849103
Posted Friday, February 12, 2010 4:52 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Today @ 11:01 AM
Points: 8,684, Visits: 9,212
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
Post #865010
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse