Results 1 to 2 of 2

Thread: Trigger to file

  1. #1
    Join Date
    Oct 2005
    Posts
    7

    Trigger to file

    Hi!

    I need help with syntax:

    CREATE TRIGGER to_file ON TABLE
    FOR INSERT
    AS
    -- wher is insert to table -->> row will be direct to file etc.: C:\\TEMP\log (txt file???)

    Thanks for help with syntax.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Try call bcp with xp_cmdshell in the trigger.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •