Click here to Skip to main content
15,921,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
N a v a n e e t h4-Aug-08 18:28
N a v a n e e t h4-Aug-08 18:28 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
Togakangaroo5-Aug-08 2:16
Togakangaroo5-Aug-08 2:16 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
darkelv4-Aug-08 19:22
darkelv4-Aug-08 19:22 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
leppie4-Aug-08 20:07
leppie4-Aug-08 20:07 
JokeRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
Harvey Saayman4-Aug-08 22:58
Harvey Saayman4-Aug-08 22:58 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
PIEBALDconsult5-Aug-08 3:14
mvePIEBALDconsult5-Aug-08 3:14 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
leppie5-Aug-08 3:56
leppie5-Aug-08 3:56 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
Ashfield4-Aug-08 21:16
Ashfield4-Aug-08 21:16 
I, like a lot of people, use stored procs extensively, mostly on reasonably large databases. Some of the reasons:

Network performance - why push extra data over the network (sp name + parameters as opposed to long sql statement)

Reuse, maintainability and consistency - if you have two applications doing the same query (perhaps with complex joins) and you need to change the query you change (and release) 1 proc, not 2 applications. You also ensure that all versions of the query are consistant and performance tuned - different developers have different skills, not everyone is good at sql.

Performance - I know that paramterised queries are cahced etc, but there are more opportunities for tuning with stored procs (some people may dispute that, thats their opinion)

There are other pros and cons, and everyone has differing opinions. I am possibly biased in that I have been contracting (mostly at large international financials) for many years, and all PRODUCTION applications have to access the database using stored procedures. This simplifies upgrades and bug fixes as you roll out a stored procedure to 1 server (possibly replicated) rather than several applications to users around the globe.

Bob
Ashfield Consultants Ltd

GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
PIEBALDconsult5-Aug-08 3:24
mvePIEBALDconsult5-Aug-08 3:24 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
Ashfield5-Aug-08 8:26
Ashfield5-Aug-08 8:26 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
Guffa4-Aug-08 21:42
Guffa4-Aug-08 21:42 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
PIEBALDconsult5-Aug-08 3:26
mvePIEBALDconsult5-Aug-08 3:26 
GeneralRe: I need to explain to our VP why trying to do everything in Stored Procedures is a bad idea Pin
nelsonpaixao5-Aug-08 13:32
nelsonpaixao5-Aug-08 13:32 
QuestionHow to finalize an object with an internal Thread ? Pin
ofeririko4-Aug-08 11:38
ofeririko4-Aug-08 11:38 
AnswerRe: How to finalize an object with an internal Thread ? Pin
led mike4-Aug-08 12:09
led mike4-Aug-08 12:09 
AnswerRe: How to finalize an object with an internal Thread ? Pin
Guffa4-Aug-08 12:32
Guffa4-Aug-08 12:32 
Questionobject oriented(class inheritance)??????? Pin
mr.mohsen4-Aug-08 10:57
mr.mohsen4-Aug-08 10:57 
AnswerRe: object oriented(class inheritance)??????? Pin
DaveyM694-Aug-08 11:03
professionalDaveyM694-Aug-08 11:03 
AnswerRe: object oriented(class inheritance)??????? Pin
DaveyM694-Aug-08 11:08
professionalDaveyM694-Aug-08 11:08 
AnswerRe: object oriented(class inheritance)??????? Pin
CodingYoshi4-Aug-08 12:37
CodingYoshi4-Aug-08 12:37 
QuestionModify a file with a write only lock Pin
StevenWalsh4-Aug-08 10:38
StevenWalsh4-Aug-08 10:38 
AnswerRe: Modify a file with a write only lock Pin
Paul Conrad4-Aug-08 10:43
professionalPaul Conrad4-Aug-08 10:43 
QuestionTrying to set the printer in printdialog Pin
baranils4-Aug-08 10:33
baranils4-Aug-08 10:33 
QuestionPDF Library Pin
CodingYoshi4-Aug-08 10:18
CodingYoshi4-Aug-08 10:18 
AnswerRe: PDF Library Pin
Pete O'Hanlon4-Aug-08 10:27
mvePete O'Hanlon4-Aug-08 10:27 

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.