dbTalk Databases Forums  

Is Calling A DTS apckage from ASP.NET similar to calling DTS apckage from your workstation using EM

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


Discuss Is Calling A DTS apckage from ASP.NET similar to calling DTS apckage from your workstation using EM in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J-T
 
Posts: n/a

Default Is Calling A DTS apckage from ASP.NET similar to calling DTS apckage from your workstation using EM - 07-18-2005 , 11:11 AM






Hi All,

I have a DTS package which create a folder on drive C using an Activex
Script(simple).When I call this from server and through Enterprise manager
,the folder is created on the server ,when I call it throug on my workstatin
using Enterprise Manager the folder is created *on my computer* (again
simple). Now I have an ASP.NET application on server A and DTS package is
on Server B .If I make a request from my workstation to Server A asp.net
page to call the package on server B,where the folder is created ? Server
A,Server B or my workstation?

Thanks



Reply With Quote
  #2  
Old   
Leo Matter
 
Posts: n/a

Default Re: Is Calling A DTS apckage from ASP.NET similar to calling DTS apckage from your workstation using EM - 07-18-2005 , 02:53 PM






i'll bet for the web server.
shedule the job, and then use SQLDMO from your asp application to start it,
it will then run under the SQL server agent's account, on the DB server.

vbscript quick and dirty example:
dim osrv
set osrv = createobject("SQLDMO.SQLServer")
osrv.Connect "db-server", "sa", "topsecretpassword"
dim ojobsrv
set ojobsrv = osrv.JobServer
for each job in ojobsrv.jobs
if job.name = "New Package" then
job.start
end if
next

just a suggestion, there are certainly other means.. (xp_cmdshell and
dtsrun.exe, etc..)

"J-T" <JT (AT) nospam (DOT) com> wrote

Quote:
Hi All,

I have a DTS package which create a folder on drive C using an Activex
Script(simple).When I call this from server and through Enterprise
manager ,the folder is created on the server ,when I call it throug on my
workstatin using Enterprise Manager the folder is created *on my computer*
(again simple). Now I have an ASP.NET application on server A and DTS
package is on Server B .If I make a request from my workstation to Server
A asp.net page to call the package on server B,where the folder is created
? Server A,Server B or my workstation?

Thanks




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 - 2013, Jelsoft Enterprises Ltd.