Click here to Skip to main content
15,885,990 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
PoweredByOtgc19-Oct-10 7:19
PoweredByOtgc19-Oct-10 7:19 
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 
"Treat the DB as a data store only"

Sorry but that’s not any better a philosophy to follow either unless your DB and use load is so small that performance doesn't matter.

The problem is one of 2 competing camps in which few are able to work with the other, less are knowledgeable about both and even fewer can properly work in and properly use each as it is intended to be.

Your right in that the DB should be your data store and your App should be your interface to the user but you don't place your business logic in your app just because you don’t like or aren't familiar with using T-SQ/ or PL-SQL. When procedural or OOP types trying to do their own IUD's (Inserts, Updates and/or Deletes) they almost always resort to that most foul of all things in SQL programming the CURSOR. They do this because they get the CURSOR concept and so they can use it with far less effort. The problem is that CURSOR is Latin for "Slow this Mo-Fo Down" and so performance and good design get thrown out like last year’s lowest rated reality TV show.

The answer is if you know how to use both, the OOP/Procedural app side and the RBDMS/SQL side then use each as they should be. If you are one who likes CURSORS then you got no business writing DML statements. On the flip side if you can't properly design and instantiate classes and objects or worse you ask what the difference is then you got no business in Visual Studio. Experience however shows that more often you have developer types doing too much DML coding in their app instead of leaving it to the more knowledgeable DBA types then the reverse. Most DBA's are happy not dealing with the OOP world and so you don’t really have to worry about them crossing over where they shouldn’t.


Reading SAMS “SQL in 24 Hours” no more makes a developer a good DBA then “.Net in 24 Hours or less” makes a DBA a good developer.
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 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 1:58
Electron Shepherd20-Oct-10 1:58 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 2:41
ScottM120-Oct-10 2:41 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 2:42
Electron Shepherd20-Oct-10 2:42 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 3:03
ScottM120-Oct-10 3:03 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Andrew Rissing20-Oct-10 2:54
Andrew Rissing20-Oct-10 2:54 
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 

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.