Hi,
I've been using SQL Server 2000 for a short while now and want to know if the following is possible. I've got two tables, Customer table and an Address table. I want to create a trigger that, when a new customer is added or amended, will output the changes to a text file. For example, if Mr Smith's address is created, it will pick up his name from the Customer table and his address from the Address table (linked by Cutomer_ID) and output the results to a text file in a '0001, Mr Smith, 12, Temple Road, London, NW2 4ET, 02084521234' format or similar.
I think this is possible for a single table but not sure about multiple tables. Also, any examples or guides would be very helpful!!
Thanks in advance.
I've been using SQL Server 2000 for a short while now and want to know if the following is possible. I've got two tables, Customer table and an Address table. I want to create a trigger that, when a new customer is added or amended, will output the changes to a text file. For example, if Mr Smith's address is created, it will pick up his name from the Customer table and his address from the Address table (linked by Cutomer_ID) and output the results to a text file in a '0001, Mr Smith, 12, Temple Road, London, NW2 4ET, 02084521234' format or similar.
I think this is possible for a single table but not sure about multiple tables. Also, any examples or guides would be very helpful!!
Thanks in advance.
Comment