C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




its very urgent i will appreciate the people those who respond imm to this question


Posted Date: 23 Aug 2006      Total Responses: 1

Posted By: rammohan reddy       Member Level: Silver     Points: 2


i need to write a trigger with functionality let us assume there are 2 tables, in one table we enter the data according to that same data has to fix into the 2nd table also i need code for that trigger in sql server 2000.
thank you




Responses

Author: Ramalingam S    23 Aug 2006Member Level: GoldRating:     Points: 2
Here's a code which you can use.
This will make sure that if u insert any value to your first table, it will automatically get inserted into second table.



CREATE TRIGGER TestInsert
ON [yourFirsttable]
FOR INSERT
AS
INSERT INTO [yourSecondtable]
SELECT * FROM inserted




Post Reply
You must Sign In to post a response.
Next : select randorm rows
Previous : cmd.Parameters.RemoveAt(0)
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use