Click here to Skip to main content
15,897,147 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CREATE TRIGGER TRGI_VW_Table ON VW_Table
INSTEAD OF INSERT
AS
BEGIN
INSERT INTO Table1
SELECT Col1,Col2,Col3,Col4,Col5,Col6,Col7
FROM INSERTED
END

This Code working fine. But Instead of static field i want dynamic field here, like i want to retrieve column name from information_schema.columns.

Can any one help me.
Posted

1 solution

 
Share this answer
 
Comments
Satyabrat Mohanty 7-Oct-15 2:45am    
Here i want to retrive column list from information_schema.columns, and insert this column value

Is it possible ?

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