Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
when i download a file it should be stored in a duplicate table after inserting, updating by using two tables. if i update or delete a file it should be update or delete in two tables
Posted

1 solution

You can perform this using sql queries or using onupdate,Oninsert or ondelete triggers on table.
 
Share this answer
 
Comments
ananth220 16-Mar-12 5:47am    
can u send me one example plssss
Anuj Banka 16-Mar-12 7:43am    
Chseck these links for triggers
http://www.roseindia.net/sql/create-after-insert-trigger.shtml
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/586d1944-7419-40c6-98d4-c69611fb9183/
Anuj Banka 16-Mar-12 7:48am    
or you can simply insert in both the two tables...

Like on inserting where you are using query insert into table.a here write the same query change the table name.
Anuj Banka 16-Mar-12 7:49am    
Means two queries
query first will insert data in table 1
Query second will insert data in table 2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900