dbTalk Databases Forums  

Autogenerated SSIS package uses external temp files

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Autogenerated SSIS package uses external temp files in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nick Gilbert
 
Posts: n/a

Default Autogenerated SSIS package uses external temp files - 11-29-2006 , 06:37 AM






Hi,

I've created an SSIS package by using the Import Wizard and saving the
package to the file system (since Integration Services will not install
on my server).

I have noticed the package creates several connections to temp files and
stores the SQL it needs to run in these files.

eg in the DTSX files you have lines like:

<DTS:ConnectionManager>
<DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
<DTS:Property DTS:Name="ObjectName">CompensatingSql</DTS:Property>
<DTS:Property
DTS:Name="DTSID">{EE2A770D-C880-4BD3-9597-894197E388A9}</DTS:Property>
<DTS:Property DTS:Name="Description"></DTS:Property>
<DTS:Property DTS:Name="CreationName">FILE</DTS:Property>
<DTS:ObjectData><DTS:ConnectionManager>
<DTS:Property DTS:Name="FileUsageType">0</DTS:Property>
<DTS:Property DTS:Name="ConnectionString">C:\Documents and
Settings\Administrator\Local Settings\Temp\1\tmp25.tmp</DTS:Property>
</DTS:ConnectionManager>
</DTS:ObjectData>
</DTS:ConnectionManager>

The temp file in the connection string above is created on the machine
on which the package was created (my workstation) rather than the
server. This is annoying in it's own right as to schedule the package, I
need to create it on the server on which it will run.

What's even more annoying is that when you run the package, it seems to
delete all these temp files if it runs successfully - despite the fact
that they contain all the SQL that does the work. Ie, the package
destroys itself each time it is run!!!

Is there a way to tell it to store the SQL in the DTSX file if the
package is generated by the wizard? There don't seem to be any options
for saving the package. Otherwise, how can I make this work without
having to create the entire package by hand which will day several days
of work?

Why on EARTH doesn't it just put the SQL in the DTSX file???

Nick...

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Autogenerated SSIS package uses external temp files - 11-29-2006 , 04:02 PM






Hello Nick,

What do these files contain? TSQL Statements? You can execute TSQL statements
that are stored inside files from the ExecuteSQL task now which is kind of
cool. What is it you are trying to do and why not try and build the package
in the designer instead of letting the wizard do it for you?




Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
Hi,

I've created an SSIS package by using the Import Wizard and saving the
package to the file system (since Integration Services will not
install on my server).

I have noticed the package creates several connections to temp files
and stores the SQL it needs to run in these files.

eg in the DTSX files you have lines like:

DTS:ConnectionManager
DTS:Property DTS:Name="DelayValidation">0</DTS:Property
DTS:Property DTS:Name="ObjectName">CompensatingSql</DTS:Property
DTS:Property
DTS:Name="DTSID">{EE2A770D-C880-4BD3-9597-894197E388A9}</DTS:Property
DTS:Property DTS:Name="Description"></DTS:Property
DTS:Property DTS:Name="CreationName">FILE</DTS:Property
DTS:ObjectData><DTS:ConnectionManager
DTS:Property DTS:Name="FileUsageType">0</DTS:Property
DTS:Property DTS:Name="ConnectionString">C:\Documents and
Settings\Administrator\Local Settings\Temp\1\tmp25.tmp</DTS:Property
/DTS:ConnectionManager
/DTS:ObjectData
/DTS:ConnectionManager
The temp file in the connection string above is created on the machine
on which the package was created (my workstation) rather than the
server. This is annoying in it's own right as to schedule the package,
I need to create it on the server on which it will run.

What's even more annoying is that when you run the package, it seems
to delete all these temp files if it runs successfully - despite the
fact that they contain all the SQL that does the work. Ie, the package
destroys itself each time it is run!!!

Is there a way to tell it to store the SQL in the DTSX file if the
package is generated by the wizard? There don't seem to be any options
for saving the package. Otherwise, how can I make this work without
having to create the entire package by hand which will day several
days of work?

Why on EARTH doesn't it just put the SQL in the DTSX file???

Nick...




Reply With Quote
  #3  
Old   
Nick Gilbert
 
Posts: n/a

Default Re: Autogenerated SSIS package uses external temp files - 11-30-2006 , 04:25 AM



Quote:
What do these files contain? TSQL Statements? You can execute TSQL
statements that are stored inside files from the ExecuteSQL task now
which is kind of cool. What is it you are trying to do and why not try
and build the package in the designer instead of letting the wizard do
it for you?
Because I was under the delusion that the Wizard would actually produce
a sensible package that is suitable for production use. Perhaps I was
wrong since the wizard generated implementation seems to be a totally
unmaintainable mess. I mean who on earth would store the SQL in the TEMP
folder which gets erased each time you run the disk cleanup wizard?!

I'm only a newbie at SSIS and I don't really have time to work out how
to do this all by hand at the moment - it looks complicated and more
than an afternoon's work to do what I want.

Nick...


Reply With Quote
  #4  
Old   
Dave Frommer
 
Posts: n/a

Default Re: Autogenerated SSIS package uses external temp files - 11-30-2006 , 07:29 PM



When you ran the wizard, you likely checked the "Optimize for multiple
tables" check box. That will cause this "unusual" package design :-)

Re-run the wozard and make sure that check box is NOT checked and you will
get a normal package with a dataflow task and multiple flows.

"Nick Gilbert" <nickg (AT) newsgroup (DOT) nospam> wrote

Quote:
What do these files contain? TSQL Statements? You can execute TSQL
statements that are stored inside files from the ExecuteSQL task now
which is kind of cool. What is it you are trying to do and why not try
and build the package in the designer instead of letting the wizard do it
for you?

Because I was under the delusion that the Wizard would actually produce a
sensible package that is suitable for production use. Perhaps I was wrong
since the wizard generated implementation seems to be a totally
unmaintainable mess. I mean who on earth would store the SQL in the TEMP
folder which gets erased each time you run the disk cleanup wizard?!

I'm only a newbie at SSIS and I don't really have time to work out how to
do this all by hand at the moment - it looks complicated and more than an
afternoon's work to do what I want.

Nick...



Reply With Quote
  #5  
Old   
Nick Gilbert
 
Posts: n/a

Default Re: Autogenerated SSIS package uses external temp files - 12-01-2006 , 04:57 AM



Dave Frommer wrote:
Quote:
When you ran the wizard, you likely checked the "Optimize for multiple
tables" check box. That will cause this "unusual" package design :-)

Re-run the wozard and make sure that check box is NOT checked and you will
get a normal package with a dataflow task and multiple flows.
Well you need to check this box in order to check the box which says
"run as a transaction". And I *need* to run it as a transaction as if
something goes wrong, a live website will end up in an unusable state.

Nick...


Reply With Quote
  #6  
Old   
Nick Gilbert
 
Posts: n/a

Default Re: Autogenerated SSIS package uses external temp files - 12-01-2006 , 04:59 AM



Todd C wrote:
Quote:
If SSIS cannot get installed on your server, how are you going to run the
package on it?
You don't need Integration Services installed to run the packages for
some reason. You can run them, but you cannot load in packages saved to
the server - which is why I'm saving it to the filesystem.

Quote:
Or, look in the package design for the steps that DELETE the file and
disable them.
I can't find any steps that would delete these files! I really don't
know why it happening. It doesn't even seem to happen every time - only
every other time or so.

Nick...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.