Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 i need to save info before upadate a gridview

Author  Topic 

sebastian11c
Posting Yak Master

129 Posts

Posted - 2011-10-12 : 18:41:51
hi, i have got a gridview,and when i click update button id like to save the row's info before i change any column, that's to protect and save the info if i made a mistake , i d like to save the info in other table or, in a textfile or, etc,, i really need your help thanks in advance

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-13 : 01:37:41
add an update trigger for table thats used for saving and capture information from deleted table to get values before the update.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sebastian11c
Posting Yak Master

129 Posts

Posted - 2011-10-18 : 09:41:23
thanks visakh16, but i couldnt find it , could you get me the exact link of the topic, or could you give me an example query of how could i do it ?"hi, i have got a gridview,and when i click update button id like to save the row's info before i change any column, that's to protect and save the info if i made a mistake , i d like to save the info in other table or, in a textfile or, etc,, i really need your help thanks in advance" , im really new in sql, and im a little confused, thanks in advanced ,
kind regrads
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-18 : 09:43:07
see

http://msdn.microsoft.com/en-us/library/ms189799.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sebastian11c
Posting Yak Master

129 Posts

Posted - 2011-10-31 : 20:47:23
thanks visakh16
could you give me your email ¿
i wold like to send you some snapshots of my database, and ask you some questions

thanks in advanced
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-01 : 04:29:09
you can post it here itself so that other people can also view and give their suggestions too

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jassi.singh
Posting Yak Master

122 Posts

Posted - 2011-11-01 : 04:33:37
Some links for your reference

http://www.nigelrivett.net/SQLTriggers/Triggers_2_Creating_Audit_Trails.html

http://www.sqlhub.com/2011/07/audit-trail-with-output-clause-in-sql.html

Please mark answer as accepted if it helped you.

Thanks,
Jassi Singh
Go to Top of Page
   

- Advertisement -