Re: keep FileSystemObject across phases
- From: Darren Green <darren.green@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 23:20:31 +0100
What is the full error message?
In message <erje0VpSFHA.3732@xxxxxxxxxxxxxxxxxxxx>, Gary <GAry@?.?.invalid> writes
Yes, I'm getting errors. I'm reworking what I'm doing to see if I can isolate where the problem is.
Gary
"Darren Green" <darren.green@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:uXEYqVoSFHA.1312@xxxxxxxxxxxxxxxxxxxxxxxanI don't understand. Why can you not store and retrieve it? Errors?
Not an open file, but the idea is the same-
Dim oFSO Set oFSO = CreateObject("Scripting.FileSystemObject") ..blah blah...
Set DTSGlobalVariables("FileObject").Value = oFSO
Dim oFSO2
Set oFSO2 = DTSGlobalVariables("FileObject").Value
Darren Green http://www.sqldts.com http://www.sqlis.com
"Gary" <GAry> wrote in message news:e1avf%23nSFHA.164@xxxxxxxxxxxxxxxxxxxxxxx > I can't get far enough for that to be a problem. I can't seem to store> object in a Global Variable and retrieve it. Any examples? I couldre-opencase> the file for append each time I get to the Row Transform phase, but that > seems like a lot of overhead. > > Gary > > > "Darren Green" <darren.green@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message > news:#Or5m5nSFHA.3088@xxxxxxxxxxxxxxxxxxxxxxx > > I haven't tried, but a guess would be set Execute on main thread inof> the > > task phase split accross threads. Right-click the task, Workflow > Properties. > > > > Darren Green > > http://www.sqldts.com > > http://www.sqlis.com > > > > "Gary" <GAry> wrote in message > > news:%23l%23bMqnSFHA.3236@xxxxxxxxxxxxxxxxxxxxxxx > > > I would like to keep a FileSystemObject open across phases. > Specifically, > > I > > > would like to open a text file during the Pre Source phase, write to > that > > > file in the Row Transform phase, then close the file in the Post Source > > > phase. I thought I could keep the FileSystemObject in a Global Variable. > I > > > have been unsuccessful in my attempts. Does anyone have an example> > doing > > > something like this? > > > > > > Thank you. > > > > > > Gary > >
-- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org
.
- Follow-Ups:
- Re: keep FileSystemObject across phases
- From: Gary
- Re: keep FileSystemObject across phases
- References:
- keep FileSystemObject across phases
- From: Gary
- Re: keep FileSystemObject across phases
- From: Darren Green
- Re: keep FileSystemObject across phases
- From: Gary
- Re: keep FileSystemObject across phases
- From: Darren Green
- Re: keep FileSystemObject across phases
- From: Gary
- keep FileSystemObject across phases
- Prev by Date: Re: Missing column values importing from Excel
- Next by Date: RE: Resuming a failed DTS package - Proper ETL design with DTS package
- Previous by thread: Re: keep FileSystemObject across phases
- Next by thread: Re: keep FileSystemObject across phases
- Index(es):
Relevant Pages
|