Re: File Open
From: Rick Sawtell (quickening_at_msn.com)
Date: 02/15/05
- Next message: Rick Sawtell: "Re: Transaction Log"
- Previous message: MarcusW: "Use of backups / log shipping in datawarehouse ETL"
- In reply to: Me: "File Open"
- Next in thread: Me: "Re: File Open"
- Reply: Me: "Re: File Open"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Feb 2005 13:41:36 -0600
"Me" <Me@discussions.microsoft.com> wrote in message
news:09CD669D-4E60-44C6-AFD2-3F2385AEFDC2@microsoft.com...
>I wanted to find out how to open a file in a Trigger?
> I have a need to open a file, write some information
> when trigger fires and then close it.
>
> Thank you,
> -Me
>
I'm not sure if this will work from within a Trigger, but you can take a
look at the xp_cmdshell stored procedure. Another option might be to create
a COM object (or .NET object in a COM wrapper) and use the sp_OA* stored
procedures to instantiate the object and call it's methods.
Rick Sawtell
MCT, MCSD, MCDBA
- Next message: Rick Sawtell: "Re: Transaction Log"
- Previous message: MarcusW: "Use of backups / log shipping in datawarehouse ETL"
- In reply to: Me: "File Open"
- Next in thread: Me: "Re: File Open"
- Reply: Me: "Re: File Open"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|