dbTalk Databases Forums  

Safety of calling DTS package from sproc with sp_oacreate

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


Discuss Safety of calling DTS package from sproc with sp_oacreate in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Barry Courtois
 
Posts: n/a

Default Safety of calling DTS package from sproc with sp_oacreate - 11-02-2003 , 01:06 PM






Due to some operational constraints, I've written a
procedure to create, set some properties and execute a
small (time, size) DTS package from a stored procedure. It
just moves some data from one place to another with some
fairly simple tranforms. I'm using the sp_OA* family of
procedures to do this. For simplicity, I was planning on
creating the object in process. Does anyone have thoughts
on this or had problems with this?

It would be running on 2k, sp3 standard. In general, it
wouldn't have to run more than a few times a day, except 4
times a year when it might run 200 or 300 hundred times in
an 8 hour period.

Reply With Quote
  #2  
Old   
Nigel Rivett
 
Posts: n/a

Default Safety of calling DTS package from sproc with sp_oacreate - 11-02-2003 , 03:19 PM






Do you have to use dts for this?

There were problems with memory leaks in the sp_oa.. SPs
but I haven't had problems with them recently.

For anything like this try testing it and see what happens.
Leave it for a couple of days looping.

Reply With Quote
  #3  
Old   
Barry Courtois
 
Posts: n/a

Default Safety of calling DTS package from sproc with sp_oacreate - 11-02-2003 , 05:35 PM



Due to silly constraints related to the source of the data
(inflexibility of that part of the application,
configuration flexibility (multiple scaled db's and no
linked stuff or open*), etc.), DTS is the best option for
moving the data from one server to the other. I'd have
prefered to run the DTS from a jsql ob or middle-tier part
of the application on a non-event basis, but am currently
constrained from doing that.

To protect the sql server, when creating the dts object
I'd like to run it outside the sql server process (an
option on sp_create), but I haven't got that to work yet.
Other than one MS article that I did not find helpful, I
haven't seen any examples that got that option on
sp_create to work correctly.

All basic tests are find, the looping suggestions is a
good one particularly if I weight the server down at the
same time. I'll try that to make myself feel better, if I
can't get the out of process thing to work.

Quote:
-----Original Message-----
Do you have to use dts for this?

There were problems with memory leaks in the sp_oa.. SPs
but I haven't had problems with them recently.

For anything like this try testing it and see what
happens.
Leave it for a couple of days looping.
.


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.