|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 7,096,
Visits: 7,156
|
|
Brigadur (2/1/2012) Maybe, a warning message would be the most elegant and a good compromise.
Cheers Istvan I'd prefer to have a configuration option that determines whether it's a warning message or an error (default being error).
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 2:42 PM
Points: 3,457,
Visits: 2,532
|
|
L' Eomot Inversé (1/26/2012) nice question.
Evey time I recall that default varchar length is 1 for declare but 30 for cast I feel sick and resolve never to use varchar without specifying the length. Nice new avatar, Tom.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Monday, April 01, 2013 10:11 AM
Points: 576,
Visits: 27,680
|
|
L' Eomot Inversé (2/1/2012)
Brigadur (2/1/2012) Maybe, a warning message would be the most elegant and a good compromise.
Cheers IstvanI'd prefer to have a configuration option that determines whether it's a warning message or an error (default being error).
That's a good idea! With the warning option, i was thinking of all existing code out there (not mine of course ) that relies on defaults.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 2,575,
Visits: 1,533
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:30 AM
Points: 861,
Visits: 1,436
|
|
Brigadur (2/1/2012)
[quote] L' Eomot Inversé (2/1/2012)
That's a good idea! With the warning option, i was thinking of all existing code out there (not mine of course  ) that relies on defaults.
+1.
Error messages could break existing code but there could be a session SET option that could possibly show warnings to most common coding mistakes perhaps. Like some recommended guidelines. But with advices from people here, not only the SQL Server team (who love procedural coding sometimes).
And profiler has two events for catching deprecated code. Maybe a few more events there?
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 7:38 AM
Points: 1,081,
Visits: 1,151
|
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Friday, March 15, 2013 10:35 AM
Points: 594,
Visits: 654
|
|
Great question!
Peter Trast Microsoft Certified ...(insert many literal strings here) Microsoft Design Architect with Alexander Open Systems
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, March 27, 2013 9:02 AM
Points: 1,046,
Visits: 573
|
|
Yahh neehhhh... At least I know now.
What you don't know won't hurt you but what you know will make you plan to know better
|
|
|
|