Click here to Skip to main content
14,921,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
I want to put a data into the database.
During insert data into the database then table will be update or modify
successfully.
How to i have done this work?
So please help me soon.. ..

Ex1: if id is same then procedure just increase the item number.
Ex2: If edit the existing data and insert this data in database then
trigger or procedure just update the data into the database.



best regards,
Md.Shawon Mahmud
Posted
Comments
radix3 19-May-10 1:15am
   
Post in your effort

1 solution

Well we can do this by considering with two scenarios:
1. Using a simple Trigger.
2. Using SQL expression as a formula

Try the following Links:

Link 1:Overview of SQL Server database Triggers[^]
Link 2:A Simple Use of SQL CASE Expression[^]
   

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