Click here to Skip to main content
16,008,750 members
Home / Discussions / Database
   

Database

 
AnswerRe: A small naming problem Pin
Shameel30-Jun-14 4:28
professionalShameel30-Jun-14 4:28 
QuestionHow to connect with SSH Tunnel? Pin
Jassim Rahma22-Jun-14 21:30
Jassim Rahma22-Jun-14 21:30 
AnswerRe: How to connect with SSH Tunnel? Pin
Simon_Whale22-Jun-14 22:02
Simon_Whale22-Jun-14 22:02 
GeneralRe: How to connect with SSH Tunnel? Pin
Jassim Rahma22-Jun-14 23:13
Jassim Rahma22-Jun-14 23:13 
QuestionRead Only Database Pin
Bastien Vandamme22-Jun-14 18:43
Bastien Vandamme22-Jun-14 18:43 
AnswerRe: Read Only Database Pin
Kornfeld Eliyahu Peter22-Jun-14 19:40
professionalKornfeld Eliyahu Peter22-Jun-14 19:40 
AnswerRe: Read Only Database Pin
Jörgen Andersson22-Jun-14 20:21
professionalJörgen Andersson22-Jun-14 20:21 
AnswerRe: Read Only Database Pin
Mycroft Holmes23-Jun-14 1:13
professionalMycroft Holmes23-Jun-14 1:13 
GeneralRe: Read Only Database Pin
Jörgen Andersson23-Jun-14 1:18
professionalJörgen Andersson23-Jun-14 1:18 
GeneralRe: Read Only Database Pin
Mycroft Holmes25-Jun-14 0:26
professionalMycroft Holmes25-Jun-14 0:26 
GeneralRe: Read Only Database Pin
Jörgen Andersson25-Jun-14 9:53
professionalJörgen Andersson25-Jun-14 9:53 
GeneralRe: Read Only Database Pin
Bastien Vandamme23-Jun-14 16:44
Bastien Vandamme23-Jun-14 16:44 
GeneralRe: Read Only Database Pin
Mycroft Holmes25-Jun-14 0:35
professionalMycroft Holmes25-Jun-14 0:35 
GeneralRe: Read Only Database Pin
Bastien Vandamme26-Jun-14 0:02
Bastien Vandamme26-Jun-14 0:02 
QuestionGet the max elements in a join? Pin
Bastien Vandamme22-Jun-14 17:14
Bastien Vandamme22-Jun-14 17:14 
AnswerRe: Get the max elements in a join? Pin
Kornfeld Eliyahu Peter22-Jun-14 19:31
professionalKornfeld Eliyahu Peter22-Jun-14 19:31 
AnswerRe: Get the max elements in a join? Pin
Jörgen Andersson22-Jun-14 20:08
professionalJörgen Andersson22-Jun-14 20:08 
QuestionIs it recommended to use trigger to manage business rules with SQL Server? Pin
Bastien Vandamme22-Jun-14 17:00
Bastien Vandamme22-Jun-14 17:00 
AnswerRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Kornfeld Eliyahu Peter22-Jun-14 19:15
professionalKornfeld Eliyahu Peter22-Jun-14 19:15 
SQL tables and their relationships/indexes/keys are part of the business logic - so you definitely have business rules on SQL. But, there is a certain level of what to put on SQL and what to save for your code...
Triggers are very powerful to do other things while something happened to one of your tables, but it has a performance penalty. I saw databases where an insert that should take of a fraction of a millisecond took over 2 seconds because of the complex computations and data changes from within a trigger. Also if you got into the trigger things you can easily get a situation where trigger fires trigger that fires trigger...and so on. A very unpleasant situation to deal with when errors occur...
So do not use triggers if you can avoid, try to create stored procedures for complex insert/update scenarios!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
GuyThiebaut22-Jun-14 21:59
professionalGuyThiebaut22-Jun-14 21:59 
GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Kornfeld Eliyahu Peter22-Jun-14 22:02
professionalKornfeld Eliyahu Peter22-Jun-14 22:02 
GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Jörgen Andersson22-Jun-14 22:20
professionalJörgen Andersson22-Jun-14 22:20 
GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Kornfeld Eliyahu Peter22-Jun-14 22:21
professionalKornfeld Eliyahu Peter22-Jun-14 22:21 
GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Jörgen Andersson22-Jun-14 22:24
professionalJörgen Andersson22-Jun-14 22:24 
GeneralRe: Is it recommended to use trigger to manage business rules with SQL Server? Pin
Kornfeld Eliyahu Peter22-Jun-14 22:28
professionalKornfeld Eliyahu Peter22-Jun-14 22:28 

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.