Click here to Skip to main content
15,885,019 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.

 
GeneralWhy would you do this to a stored procedure? It never did anything to you. PinPopular
thrakazog15-Nov-12 11:58
thrakazog15-Nov-12 11:58 
SQL
ALTER PROCEDURE [dbo].[arUpdate]
   @intForecastID int,
   @strForecastName varchar(18),
   @strBillTo varchar(12),
   @strPOCName varchar(50),
   @strPOCEmail varchar(100),
   @strModifiedBy varchar(20),
   @strComment varchar(3000),
   @strDelMaterials varchar(8000),
   @strData1 varchar(8000),
   @strData2 varchar(8000),
   @strData3 varchar(8000),
   @strData4 varchar(8000),
   @strData5 varchar(8000),
   @strData6 varchar(8000),
   @strData7 varchar(8000),
   @strData8 varchar(8000),
   @strData9 varchar(8000),
   @strData10 varchar(8000),
   @strData11 varchar(8000),
   @strData12 varchar(8000),
   @strData13 varchar(8000),
   @strData14 varchar(8000),
   @strData15 varchar(8000),
   @strData16 varchar(8000),
   @strData17 varchar(8000),
   @strData18 varchar(8000),
   @strData19 varchar(8000),
   @strData20 varchar(8000)


WTF | :WTF: None of the code in this procedure or from the calling methods looked any better. The data going into the varchar(8000) fields was delimited with a grab bag combination of special characters. Which was then pealed apart using cursors. WTF | :WTF:
Play my game Gravity: IOS[^], Android[^], Windows Phone 7[^]

GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Brisingr Aerowing15-Nov-12 12:48
professionalBrisingr Aerowing15-Nov-12 12:48 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. PinPopular
jim lahey20-Nov-12 3:41
jim lahey20-Nov-12 3:41 
JokeRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Lewis198620-Nov-12 20:50
professionalLewis198620-Nov-12 20:50 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. PinPopular
Pete O'Hanlon20-Nov-12 12:09
mvePete O'Hanlon20-Nov-12 12:09 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Florin Jurcovici22-Nov-12 1:13
Florin Jurcovici22-Nov-12 1:13 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
SomeGuyThatIsMe21-Nov-12 2:17
SomeGuyThatIsMe21-Nov-12 2:17 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
KP Lee22-Nov-12 18:23
KP Lee22-Nov-12 18:23 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
SomeGuyThatIsMe26-Nov-12 2:34
SomeGuyThatIsMe26-Nov-12 2:34 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Adriaan Davel21-Nov-12 20:36
Adriaan Davel21-Nov-12 20:36 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
thrakazog22-Nov-12 3:25
thrakazog22-Nov-12 3:25 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
dazfuller21-Nov-12 20:58
dazfuller21-Nov-12 20:58 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Harry Neethling21-Nov-12 23:23
Harry Neethling21-Nov-12 23:23 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
mmelvis22-Nov-12 3:45
mmelvis22-Nov-12 3:45 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
thrakazog22-Nov-12 18:04
thrakazog22-Nov-12 18:04 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
exmsde22-Nov-12 11:13
exmsde22-Nov-12 11:13 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
thomas.michaud26-Nov-12 4:08
thomas.michaud26-Nov-12 4:08 
GeneralRe: Why would you do this to a stored procedure? It never did anything to you. Pin
Nitin S4-Dec-12 1:22
professionalNitin S4-Dec-12 1:22 

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.