Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have tables name stock and demagedStock in sql server 2005....i want a trigger in sql server 2005 which insert the values from stock table to demagedstock table n delete from stock table if the product is expired and trigger should execute whenever my vb.net application is loaded..
Posted

1 solution

Go through the below link to get an idea how to proceed

Triggers -- SQL Server[^]
 
Share this answer
 
Comments
jyoti nagdev 8-Feb-14 5:32am    
what about sql jobs can v create a job for this instead of trigger???
[no name] 8-Feb-14 5:34am    
In my choice trigger will be fine..
jyoti nagdev 8-Feb-14 5:39am    
ok thank u...
[no name] 8-Feb-14 5:46am    
glad to help..

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