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

 
GeneralIf Indexing Then Loop Pin
AspDotNetDev22-Oct-10 11:23
protectorAspDotNetDev22-Oct-10 11:23 
GeneralRe: If Indexing Then Loop Pin
HimanshuJoshi22-Oct-10 11:31
HimanshuJoshi22-Oct-10 11:31 
GeneralRe: If Indexing Then Loop Pin
PIEBALDconsult22-Oct-10 16:55
mvePIEBALDconsult22-Oct-10 16:55 
GeneralRe: If Indexing Then Loop Pin
ghle26-Oct-10 1:31
ghle26-Oct-10 1:31 
GeneralStored Procs, Packages, Views...Pah! PinPopular
Richard A. Dalton19-Oct-10 4:16
Richard A. Dalton19-Oct-10 4:16 
GeneralRe: Stored Procs, Packages, Views...Pah! PinPopular
Ray Cassick19-Oct-10 6:48
Ray Cassick19-Oct-10 6:48 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Kevin Drzycimski19-Oct-10 7:10
Kevin Drzycimski19-Oct-10 7:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
PoweredByOtgc19-Oct-10 7:19
PoweredByOtgc19-Oct-10 7:19 
I agree 100%, there is too many drawbacks on using adhock queries in the client application that most of the times prevents scaling an application. what if you have a table holding customer records, and you want to move the address columns to a new table to introduce multiple addresses for a customer.

how are you going to due this when you have a web app, thick client, analysis cubes, reporting that will all require change and how do you manage deploying this change out?

by preventing adhock or table direct queries all one would have to due is modify a few views and procs.

secondly how can you ensure that all the adhock queries in all applications that are consuming this database are all using indexes, common business logic and formulas. and how would you trace down a poorly written adhock query that is table scanning, how do you go about fixing it and deploying it without impacting other user applications.

my developers may only select from a view or call a proc from any application period....

look on the bright side, you have an opportunity to catalog all objects and send out impact statements to understand who is using what and also have an opportunity to find synergies between your development teams to come to a common process
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Jason Christian20-Oct-10 7:00
Jason Christian20-Oct-10 7:00 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton19-Oct-10 7:30
Richard A. Dalton19-Oct-10 7:30 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Andrew Rissing19-Oct-10 7:54
Andrew Rissing19-Oct-10 7:54 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton19-Oct-10 8:24
Richard A. Dalton19-Oct-10 8:24 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Ray Cassick19-Oct-10 12:32
Ray Cassick19-Oct-10 12:32 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 1:32
Richard A. Dalton20-Oct-10 1:32 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
YSLGuru20-Oct-10 10:18
YSLGuru20-Oct-10 10:18 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Ian Shlasko20-Oct-10 10:58
Ian Shlasko20-Oct-10 10:58 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Chris Quinn20-Oct-10 2:22
Chris Quinn20-Oct-10 2:22 
GeneralRe: Stored Procs, Packages, Views...Pah! PinPopular
Trajan McGill20-Oct-10 11:59
Trajan McGill20-Oct-10 11:59 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 23:21
Richard A. Dalton20-Oct-10 23:21 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Dr.Walt Fair, PE19-Oct-10 13:01
professionalDr.Walt Fair, PE19-Oct-10 13:01 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Rob Grainger19-Oct-10 23:10
Rob Grainger19-Oct-10 23:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd19-Oct-10 23:36
Electron Shepherd19-Oct-10 23:36 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
OriginalGriff20-Oct-10 0:10
mveOriginalGriff20-Oct-10 0:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 0:20
Electron Shepherd20-Oct-10 0:20 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
OriginalGriff20-Oct-10 0:25
mveOriginalGriff20-Oct-10 0:25 

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.