Re: How to automatically insert new records into Child Table using Tri
- From: Plamen Ratchev <Plamen@xxxxxxxxxxxxx>
- Date: Fri, 12 Jun 2009 12:52:12 -0400
You can use your table valued function with CROSS APPLY:
CREATE TRIGGER ParentTableInsert
ON ParentTable
FOR INSERT
AS
INSERT INTO ChildTable (ParentID, FullRow)
SELECT I.ParentID, F.FullRow
FROM Inserted AS I
CROSS APPLY dbo.MyParseFunction(I.strInput) AS F;
--
Plamen Ratchev
http://www.SQLStudio.com
.
- References:
- Prev by Date: Re: Copy File and error code
- Next by Date: Reusable Code
- Previous by thread: Re: How to automatically insert new records into Child Table using Tri
- Next by thread: Re: How to automatically insert new records into Child Table using Tri
- Index(es):