Click here to Skip to main content
15,888,803 members
Home / Discussions / Database
   

Database

 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Kornfeld Eliyahu Peter27-Jan-14 21:02
professionalKornfeld Eliyahu Peter27-Jan-14 21:02 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Mycroft Holmes27-Jan-14 21:06
professionalMycroft Holmes27-Jan-14 21:06 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Kornfeld Eliyahu Peter28-Jan-14 23:28
professionalKornfeld Eliyahu Peter28-Jan-14 23:28 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Jörgen Andersson27-Jan-14 23:10
professionalJörgen Andersson27-Jan-14 23:10 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Richard Deeming28-Jan-14 1:34
mveRichard Deeming28-Jan-14 1:34 
GeneralRe: Conditional SQL commands: Good? Bad? Pin
Jörgen Andersson28-Jan-14 2:32
professionalJörgen Andersson28-Jan-14 2:32 
AnswerRe: Conditional SQL commands: Good? Bad? Pin
Shameel27-Jan-14 22:39
professionalShameel27-Jan-14 22:39 
AnswerRe: Conditional SQL commands: Good? Bad? Pin
jschell28-Jan-14 10:40
jschell28-Jan-14 10:40 
Gregory.Gadow wrote:
I would think this is more efficient than putting the if...else in the application,


And this matters because your application currently has an efficiency problem?

Gregory.Gadow wrote:
move a lot of code to SQL Server as stored procedures


I use stored procedures for the same reason I have a database layer in an application - to make the layers more distinct and hopefully insuring that access happens in a controlled and reasonable way.

Some business logic which might have performance concerns, can be done must more efficiently in the database server than a client application. There are of course still ways to badly mess this up.

Other than that one problem with using conditional structures in stored procedures is that programmers who do not understand how to really use SQL can end up creating structured programs (ifs, whiles, etc). Of course if one uses stored procedures then if all else fails one can hire a real DBA to redo the stored procs.
QuestionDatabase Design Tools? Pin
Code_Crash26-Jan-14 21:41
Code_Crash26-Jan-14 21:41 
AnswerRe: Database Design Tools? Pin
Richard MacCutchan26-Jan-14 21:58
mveRichard MacCutchan26-Jan-14 21:58 
AnswerRe: Database Design Tools? Pin
Jörgen Andersson27-Jan-14 1:36
professionalJörgen Andersson27-Jan-14 1:36 
GeneralRe: Database Design Tools? Pin
Code_Crash27-Jan-14 2:27
Code_Crash27-Jan-14 2:27 
AnswerRe: Database Design Tools? Pin
thatraja27-Jan-14 2:15
professionalthatraja27-Jan-14 2:15 
GeneralRe: Database Design Tools? Pin
Code_Crash27-Jan-14 2:31
Code_Crash27-Jan-14 2:31 
QuestionEntity framework Pin
columbos1492725-Jan-14 7:58
columbos1492725-Jan-14 7:58 
AnswerRe: Entity framework Pin
jschell25-Jan-14 13:01
jschell25-Jan-14 13:01 
AnswerRe: Entity framework Pin
S Douglas26-Feb-14 10:28
professionalS Douglas26-Feb-14 10:28 
GeneralMessage Closed Pin
25-Jan-14 3:18
anilkg2y25-Jan-14 3:18 
GeneralMessage Removed Pin
25-Jan-14 13:01
jschell25-Jan-14 13:01 
GeneralMessage Removed Pin
25-Jan-14 21:21
mveRichard MacCutchan25-Jan-14 21:21 
GeneralMessage Removed Pin
27-Jan-14 3:18
professionalShameel27-Jan-14 3:18 
Questionsql/PLSQL :need a expert help on this Pin
ramina sen23-Jan-14 6:38
ramina sen23-Jan-14 6:38 
QuestionRe: sql/PLSQL :need a expert help on this Pin
Eddy Vluggen23-Jan-14 7:55
professionalEddy Vluggen23-Jan-14 7:55 
QuestionSSRS - No of Rows per page Pin
berba22-Jan-14 19:50
berba22-Jan-14 19:50 
AnswerRe: SSRS - No of Rows per page Pin
Mycroft Holmes22-Jan-14 21:30
professionalMycroft Holmes22-Jan-14 21:30 

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.