Click here to Skip to main content
16,008,010 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: The Horror! Pin
Shog927-Apr-07 9:15
sitebuilderShog927-Apr-07 9:15 
GeneralRe: The Horror! Pin
John R. Shaw28-Apr-07 13:50
John R. Shaw28-Apr-07 13:50 
GeneralRe: The Horror! Pin
Rajesh R Subramanian1-May-07 21:39
professionalRajesh R Subramanian1-May-07 21:39 
GeneralRe: The Horror! Pin
John R. Shaw5-May-07 23:54
John R. Shaw5-May-07 23:54 
GeneralJoy! Pin
Brady Kelly24-Apr-07 1:44
Brady Kelly24-Apr-07 1:44 
GeneralRe: Joy! Pin
Pete O'Hanlon24-Apr-07 2:15
mvePete O'Hanlon24-Apr-07 2:15 
GeneralRe: Joy! Pin
PIEBALDconsult24-Apr-07 3:16
mvePIEBALDconsult24-Apr-07 3:16 
GeneralRe: Joy! Pin
Mike Dimmick24-Apr-07 5:22
Mike Dimmick24-Apr-07 5:22 
I surely don't need to point out that if the sum of field lengths used exceeds 8000 bytes, SQL Server will refuse to insert the row.

SQL Server 2000, anyway. SQL Server 2005 might do something different since it now supports varchar(max), but I think you actually have to use that syntax to get out-of-row varchar fields. SQL Server 2000 makes you use the slightly-differently-behaving text datatype, which confusingly can be set to be stored in the row if it's below a certain length of data.

(If you smoke and drink at the same time, aren't you in danger of putting your cigarette out?)

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: Joy! Pin
Brady Kelly24-Apr-07 5:40
Brady Kelly24-Apr-07 5:40 
GeneralRe: Joy! Pin
Jasmine250125-Apr-07 12:42
Jasmine250125-Apr-07 12:42 
GeneralRe: Joy! Pin
Brady Kelly25-Apr-07 19:16
Brady Kelly25-Apr-07 19:16 
GeneralRe: Joy! Pin
Jasmine250126-Apr-07 4:26
Jasmine250126-Apr-07 4:26 
GeneralRe: Joy! Pin
Brady Kelly26-Apr-07 4:34
Brady Kelly26-Apr-07 4:34 
GeneralRe: Joy! Pin
David Crow24-Apr-07 5:53
David Crow24-Apr-07 5:53 
GeneralRe: Joy! Pin
John R. Shaw28-Apr-07 13:56
John R. Shaw28-Apr-07 13:56 
GeneralRe: Joy! Pin
chrishuff26-Apr-07 7:06
chrishuff26-Apr-07 7:06 
GeneralRe: Joy! Pin
John R. Shaw28-Apr-07 14:15
John R. Shaw28-Apr-07 14:15 
GeneralRe: Joy! Pin
Brady Kelly28-Apr-07 22:34
Brady Kelly28-Apr-07 22:34 
GeneralRe: Joy! Pin
John R. Shaw29-Apr-07 14:36
John R. Shaw29-Apr-07 14:36 
Generalheader change on sort [modified] Pin
sonia_basangar23-Apr-07 19:38
sonia_basangar23-Apr-07 19:38 
Answeryou (perhaps us?) missed something Pin
CPallini23-Apr-07 21:05
mveCPallini23-Apr-07 21:05 
QuestionData type mismatch in criteria expression. Pin
dheema23-Apr-07 19:01
dheema23-Apr-07 19:01 
AnswerYeah, that's all just pretty horrible. Pin
Shog923-Apr-07 19:31
sitebuilderShog923-Apr-07 19:31 
Joke750 Line function Pin
Tristan Rhodes19-Apr-07 0:00
Tristan Rhodes19-Apr-07 0:00 
GeneralRe: 750 Line function Pin
Mike Dimmick19-Apr-07 1:24
Mike Dimmick19-Apr-07 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.