Click here to Skip to main content
15,910,787 members
Home / Discussions / Database
   

Database

 
QuestionSql Query for StoreProcedure to generate reports and subreports Pin
Member 1074488725-Jun-14 16:52
Member 1074488725-Jun-14 16:52 
AnswerRe: Sql Query for StoreProcedure to generate reports and subreports Pin
Jörgen Andersson25-Jun-14 20:11
professionalJörgen Andersson25-Jun-14 20:11 
Question[Bug][java.sql.DriverManager.getConnection(Unknown Source)] Pin
Thong LeTrung25-Jun-14 5:40
Thong LeTrung25-Jun-14 5:40 
QuestionPerformance problem Pin
sma123#23-Jun-14 7:25
sma123#23-Jun-14 7:25 
AnswerRe: Performance problem Pin
Eddy Vluggen23-Jun-14 7:38
professionalEddy Vluggen23-Jun-14 7:38 
AnswerRe: Performance problem Pin
David Mujica23-Jun-14 8:35
David Mujica23-Jun-14 8:35 
GeneralRe: Performance problem Pin
jschell25-Jun-14 12:22
jschell25-Jun-14 12:22 
GeneralRe: Performance problem Pin
Eddy Vluggen26-Jun-14 0:25
professionalEddy Vluggen26-Jun-14 0:25 
AnswerRe: Performance problem Pin
Mycroft Holmes25-Jun-14 0:31
professionalMycroft Holmes25-Jun-14 0:31 
QuestionA small naming problem Pin
Jörgen Andersson22-Jun-14 22:23
professionalJörgen Andersson22-Jun-14 22:23 
AnswerRe: A small naming problem Pin
Kornfeld Eliyahu Peter22-Jun-14 22:42
professionalKornfeld Eliyahu Peter22-Jun-14 22:42 
GeneralRe: A small naming problem Pin
Jörgen Andersson22-Jun-14 22:49
professionalJörgen Andersson22-Jun-14 22:49 
AnswerRe: A small naming problem Pin
Kornfeld Eliyahu Peter22-Jun-14 23:00
professionalKornfeld Eliyahu Peter22-Jun-14 23:00 
GeneralRe: A small naming problem Pin
Jörgen Andersson22-Jun-14 23:34
professionalJörgen Andersson22-Jun-14 23:34 
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 
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 

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.