Click here to Skip to main content
15,892,768 members
Home / Discussions / Database
   

Database

 
GeneralRe: My Ox is Flummed! Pin
jschell22-Jun-11 9:29
jschell22-Jun-11 9:29 
QuestionTrying to get the output of this code down to 1 line vs 1886 it currently displays. Can anyone help? Pin
SQL Ed20-Jun-11 9:49
SQL Ed20-Jun-11 9:49 
AnswerRe: Trying to get the output of this code down to 1 line vs 1886 it currently displays. Can anyone help? Pin
Tim Carmichael20-Jun-11 10:25
Tim Carmichael20-Jun-11 10:25 
QuestionRe: Trying to get the output of this code down to 1 line vs 1886 it currently displays. Can anyone help? Pin
SQL Ed21-Jun-11 6:24
SQL Ed21-Jun-11 6:24 
AnswerRe: Trying to get the output of this code down to 1 line vs 1886 it currently displays. Can anyone help? [modified] Pin
TrustTheMath21-Jun-11 9:00
TrustTheMath21-Jun-11 9:00 
QuestionSQL Update Statement, OleDbDataAdapter, and ms access 2007 Pin
VonHagNDaz17-Jun-11 8:05
VonHagNDaz17-Jun-11 8:05 
AnswerRe: SQL Update Statement, OleDbDataAdapter, and ms access 2007 Pin
Matt U.19-Jun-11 6:40
Matt U.19-Jun-11 6:40 
QuestionKeep history table [modified] Pin
Rahul.RK14-Jun-11 20:05
Rahul.RK14-Jun-11 20:05 
Hello,

I need to insert the newly inserted/Updated/Deleted records into History table in following format.

ID - Field Name - Old Value - New Value - Date

So what would be the best way to achive this. Should i go for Trigger? Write insert statement in each insert/Update/Delete stored procedure?

Demo code would help more.


As described above,

There would be a table names "History" having columns,
ID - TableName - Field Name - Old Value - New Value - Date - AdminID [Id of user who is modifing field]

Now Table name and field name would be the values indicating the inserted/modified/delete field name. Oldvalue coloumn would be showing old value if any and new value would show current value.

So all the database table would have single History table.

Hope this made more clear. Thanks.

Thanks in advance.

modified on Thursday, June 16, 2011 12:46 AM

AnswerRe: Keep history table Pin
_Damian S_14-Jun-11 20:32
professional_Damian S_14-Jun-11 20:32 
AnswerRe: Keep history table Pin
FeatherstoneBC15-Jun-11 7:37
FeatherstoneBC15-Jun-11 7:37 
AnswerRe: Keep history table Pin
jschell15-Jun-11 9:08
jschell15-Jun-11 9:08 
AnswerArchive Pin
David Mujica16-Jun-11 2:54
David Mujica16-Jun-11 2:54 
AnswerRe: Keep history table Pin
Simon_Whale16-Jun-11 6:28
Simon_Whale16-Jun-11 6:28 
QuestionHow to get reference information between parent and child tables (MS SQL Server/MSAccess)? [modified] Pin
priyamtheone13-Jun-11 19:51
priyamtheone13-Jun-11 19:51 
AnswerRe: How to get reference information between parent and child tables (MS SQL Server/MSAccess)? Pin
_Damian S_13-Jun-11 20:09
professional_Damian S_13-Jun-11 20:09 
GeneralRe: How to get reference information between parent and child tables (MS SQL Server/MSAccess)? Pin
priyamtheone13-Jun-11 21:12
priyamtheone13-Jun-11 21:12 
AnswerRe: How to get reference information between parent and child tables (MS SQL Server/MSAccess)? Pin
Simon_Whale13-Jun-11 22:42
Simon_Whale13-Jun-11 22:42 
AnswerRe: How to get reference information between parent and child tables (MS SQL Server/MSAccess)? Pin
Mycroft Holmes14-Jun-11 1:20
professionalMycroft Holmes14-Jun-11 1:20 
QuestionSelect records from a single table that have common data in two columns Pin
Frank Lepkowski13-Jun-11 10:43
Frank Lepkowski13-Jun-11 10:43 
AnswerRe: Select records from a single table that have common data in two columns Pin
GenJerDan13-Jun-11 11:11
GenJerDan13-Jun-11 11:11 
AnswerRe: Select records from a single table that have common data in two columns Pin
Johan Hakkesteegt13-Jun-11 22:40
Johan Hakkesteegt13-Jun-11 22:40 
GeneralRe: Select records from a single table that have common data in two columns Pin
_Damian S_14-Jun-11 14:54
professional_Damian S_14-Jun-11 14:54 
GeneralRe: Select records from a single table that have common data in two columns Pin
Johan Hakkesteegt14-Jun-11 21:26
Johan Hakkesteegt14-Jun-11 21:26 
AnswerRe: Select records from a single table that have common data in two columns Pin
Eddy Vluggen14-Jun-11 1:10
professionalEddy Vluggen14-Jun-11 1:10 
GeneralRe: Select records from a single table that have common data in two columns Pin
Mycroft Holmes14-Jun-11 1:22
professionalMycroft Holmes14-Jun-11 1:22 

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.