|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 8:48 AM
Points: 2,440,
Visits: 714
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 3:00 AM
Points: 1,151,
Visits: 879
|
|
Grrrreat question, Excellent answer, 'nuff said:P:P:P:P:P:P
Manie Verster Developer Johannesburg South Africa
Life is about choices.... I choose to be happy today
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 1:48 AM
Points: 1,252,
Visits: 3,367
|
|
I'm wrong here but this is not correct question;
1 & 2 are the same ... with same condition! So the correct answer is 2 but the 1 is the same everything ... too stupid! 3 is different!
also with three options I do not have valid parse for T-SQL code!
how can you explain it!?
 :P:P:P:P:P
============================================================ SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION = http://www.sqlservercentral.com/articles/Best+Practices/61537/
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 1:48 AM
Points: 1,252,
Visits: 3,367
|
|
OHHH nooooooooooooooooo
I work just from select statement not "with numbered"
pthuuuu
nononononoonononononononono I anaylized very well what happend but without this piece of code!
============================================================ SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION = http://www.sqlservercentral.com/articles/Best+Practices/61537/
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 11:56 AM
Points: 70,
Visits: 144
|
|
whats happened to sql - it used to be so simple
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, January 08, 2013 11:56 AM
Points: 70,
Visits: 144
|
|
| dougi - are you using sql 2000 by any chance?
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Yesterday @ 6:22 AM
Points: 642,
Visits: 199
|
|
| I agree, this was an excellent question!
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 7:33 AM
Points: 5,103,
Visits: 20,213
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 8:40 AM
Points: 2,412,
Visits: 578
|
|
| Gives me more stuff to figure out, thanks for the question.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 10:43 AM
Points: 1,146,
Visits: 1,848
|
|
A semicolon at the beginning of the statement is valid I'm seeing a lot of this lately. I.e., statements such as:
;WITH ... Note that the semicolon is NOT part of the WITH statement syntax. This issue only arises if the prior statement did not end with a semicolon (which it should). So the leading semicolon is terminating the prior statement.
SQL Server is starting to enforce proper statement termination. IMO, long overdue. Get into the habit of properly terminating ALL of your T-SQL statements. Even Microsoft recommends using it. From BOL: Many code examples use a semicolon ( ; ) as a Transact-SQL statement terminator. Although the semicolon is not required, using it is considered a good practice.
(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.
|
|
|
|