|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 11:20 PM
Points: 17,
Visits: 88
|
|
Sorry the explanation is wrong. Then the question is not properly framed. Questions should be aimed at eliciting understanding....
Even if go is not a standard tsql, then by default i will not add it cos this will depend on my environment.....It does not add to knowledge...no use asking trick questions....
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:49 PM
Points: 5,244,
Visits: 7,063
|
|
lanre_makinde (9/19/2012) Sorry the explanation is wrong. Then the question is not properly framed. Questions should be aimed at eliciting understanding....
Even if go is not a standard tsql, then by default i will not add it cos this will depend on my environment.....It does not add to knowledge...no use asking trick questions.... Maybe you can explain why you think the explanation is wrong? I am very pleased with the explanation - it not only tells you why the correct answer is correct, it also gives you some backgrounds, and a warning. I think it's very well done, so I am looking forward to an explanation of why you feel so different about it. Also, can you explain why the question is, in your opinion, not properly framed? Is that refering to the yes/no vs true/false debate, or is there something else that should have been different?
Hugo Kornelis, SQL Server MVP Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 11:54 AM
Points: 7,112,
Visits: 7,188
|
|
lanre_makinde (9/19/2012) Sorry the explanation is wrong. Then the question is not properly framed. Questions should be aimed at eliciting understanding....
It appears to me to be right, to be properly framed (at least for fluent English speakers - for others the distinction between yes/no and true/false may be important), and to be very clearly aimed at eliciting understanding. Can you explain why you reach the opposite conculsion on each of these three points?
Tom Is minic a gheibheann béal oscailte dorn dúnta. Is minig a cheapas beul fosgailte dòrn dùinte.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 9:51 AM
Points: 1,891,
Visits: 936
|
|
joe.wolfe (9/13/2012) The given answer to this question is "true", but I am not sure this is correct. The "NotGo" throws an error "Incorrect syntax near 'NotGo'" and the variable @Test cannot be declared twice the same procedure or batch...What am I missing?
I felt the same way about this question. But knowing that you can configure things as suggested is a great thing to know about and avoid. Worth learning and even missing the answer to know.
Not all gray hairs are Dinosaurs!
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:16 PM
Points: 3,367,
Visits: 1,567
|
|
Miles Neale (9/19/2012)
joe.wolfe (9/13/2012) The given answer to this question is "true", but I am not sure this is correct. The "NotGo" throws an error "Incorrect syntax near 'NotGo'" and the variable @Test cannot be declared twice the same procedure or batch...What am I missing?
I felt the same way about this question. But knowing that you can configure things as suggested is a great thing to know about and avoid. Worth learning and even missing the answer to know.
It may be worth mentioning (and honestly I'm not sure I haven't already as long as this discussion as gotten) that the first time I encountered this was when I received a script from a vendor using a non standard batch separator. I had to struggle to figure out what was wrong. My original purpose for this question was to help show others what can be done. Not so that they can use it, since honestly I don't think they should, but so if someone else makes use of this functionality they can easily work around it.
And lets be honest, I find it a rather interesting piece of SQL trivia.
Kenneth Fisher I strive to live in a world where a chicken can cross the road without being questioned about its motives. -------------------------------------------------------------------------------- For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Link to my Blog Post --> www.SQLStudies.com
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 8:43 AM
Points: 176,
Visits: 124
|
|
What a Nonsense this question is?
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Friday, April 19, 2013 10:27 AM
Points: 690,
Visits: 1,100
|
|
Anurag-428305 (9/20/2012)
What a Nonsense this question is? 
I'm not sure why they made "GO" a configurable batch separator. I'm sure they had a reason that is beyond me but the question is not nonsense in the fact it was something I never knew and even thought about but am aware of now due to this question.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 8:48 AM
Points: 2,440,
Visits: 714
|
|
Was it mentioned how one would change the separator?
Jamie
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: 2 days ago @ 1:33 AM
Points: 738,
Visits: 1,126
|
|
The question was not clear at all...at a surface while using 'notgo', the entire script should prone to a failure..
Thanks.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: 2 days ago @ 1:16 PM
Points: 3,367,
Visits: 1,567
|
|
SQL-DBA-01 (10/8/2012) The question was not clear at all...at a surface while using 'notgo', the entire script should prone to a failure..
Please read the explanation and the previous 79 posts. That should explain it quite thoroughly. If not please post again and I'll try to explain it in a different way.
Kenneth Fisher I strive to live in a world where a chicken can cross the road without being questioned about its motives. -------------------------------------------------------------------------------- For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Link to my Blog Post --> www.SQLStudies.com
|
|
|
|