Click here to Skip to main content
15,889,281 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: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 2:55
Electron Shepherd20-Oct-10 2:55 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 3:09
ScottM120-Oct-10 3:09 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 3:10
Electron Shepherd20-Oct-10 3:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 3:20
ScottM120-Oct-10 3:20 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 3:22
Electron Shepherd20-Oct-10 3:22 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 3:40
ScottM120-Oct-10 3:40 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 3:46
Electron Shepherd20-Oct-10 3:46 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 4:10
ScottM120-Oct-10 4:10 
Electron Shepherd wrote:
Then you have a security bug.


No, then YOU have a security bug, I don't have to worry about this.

The fact of the matter is you shouldn't be escaping characters yourself.
Parameterized queries were created for this purpose so why would you want to even do it yourself?
There are also performance benefits to using parameterized queries.
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 4:15
Electron Shepherd20-Oct-10 4:15 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 4:30
ScottM120-Oct-10 4:30 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 4:46
Electron Shepherd20-Oct-10 4:46 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 4:59
ScottM120-Oct-10 4:59 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 5:08
Electron Shepherd20-Oct-10 5:08 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 5:23
ScottM120-Oct-10 5:23 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 5:37
Electron Shepherd20-Oct-10 5:37 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 21:08
ScottM120-Oct-10 21:08 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 4:19
Richard A. Dalton20-Oct-10 4:19 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
wout de zeeuw20-Oct-10 10:54
wout de zeeuw20-Oct-10 10:54 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
AspDotNetDev20-Oct-10 11:11
protectorAspDotNetDev20-Oct-10 11:11 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Tomz_KV20-Oct-10 2:06
Tomz_KV20-Oct-10 2:06 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 2:43
Richard A. Dalton20-Oct-10 2:43 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 2:46
Electron Shepherd20-Oct-10 2:46 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Tomz_KV20-Oct-10 3:12
Tomz_KV20-Oct-10 3:12 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 3:17
Electron Shepherd20-Oct-10 3:17 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 3:26
Richard A. Dalton20-Oct-10 3:26 

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.