Click here to Skip to main content
15,357,992 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
MemberJassim Rahma22-Jun-14 21:30 
AnswerRe: How to connect with SSH Tunnel? Pin
Simon_Whale22-Jun-14 22:02
professionalSimon_Whale22-Jun-14 22:02 
GeneralRe: How to connect with SSH Tunnel? Pin
Jassim Rahma22-Jun-14 23:13
MemberJassim Rahma22-Jun-14 23:13 
QuestionRead Only Database Pin
Bastien Vandamme22-Jun-14 18:43
MemberBastien 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 
I would call this auditing, unless I have the requirement completely wrong, where you need to track changes but retain only the current information in the table. This is one of the few valid uses for triggers spit.

Use a trigger to fire on inset/update/delete, on insert and delete grab the ID, you don't need each field value here, on update grab the before and after values, the ID on the user and shove them into an audit table.

If you are doing bulk inserts (etl data in) then turn off the triggers before processing.
Never underestimate the power of human stupidity
RAH

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
MemberBastien 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
MemberBastien Vandamme26-Jun-14 0:02 
QuestionGet the max elements in a join? Pin
Bastien Vandamme22-Jun-14 17:14
MemberBastien 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
MemberBastien 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 
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.