![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a Local DTS package which creates an extract file from a table in SQL Server using a basic VBscript ActiveX script on SQL Server 7.0. It runs fine from Enterprise Manager, and also if called via a SQL Agent job, but not when I call it from an ASP webpage. See below for the web script content, which is pretty much the same as a KB article I got it from. The odd thing is that it definitely seems to access the DTS package (it gets the description correctly for the Step), and when I put a SQL Server trace on, I can see that it calls the DTS package. But it gets a failure result back from the DTS package and the DTS package doesn't produce the output file as it does when I call it from Enterprise Manager. |
#3
| |||
| |||
|
|
In message <24601e255dcfb38b699586fea560a29d (AT) news (DOT) teranews.com>, Dave S dave_xxx70 (AT) hotmail (DOT) com> writes I have a Local DTS package which creates an extract file from a table in SQL Server using a basic VBscript ActiveX script on SQL Server 7.0. It runs fine from Enterprise Manager, and also if called via a SQL Agent job, but not when I call it from an ASP webpage. See below for the web script content, which is pretty much the same as a KB article I got it from. The odd thing is that it definitely seems to access the DTS package (it gets the description correctly for the Step), and when I put a SQL Server trace on, I can see that it calls the DTS package. But it gets a failure result back from the DTS package and the DTS package doesn't produce the output file as it does when I call it from Enterprise Manager. DTS is a client-side component, so when calling from ASP it is executing on the IIS server, under the IIS security context (IWAM_MACHINE name by default). Does IWAM have access to run the code in the package and create the file in the specified location (local to the IIS server)? -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org |
#4
| |||
| |||
|
|
IWAM has permissions to read/write to the directory where the DTS package on SQL server is attempting to create a file in. I'm not sure how to give IWAM permissions to run the code in the DTS package on SQL Server though. If they are on separate machines, then you cannot so you will need to |
|
Isn't the DTS package is on SQL server and the create object in the ASP script should be on the server side too ? No. DTS is a COM object, just like any other COM object you may use in |
![]() |
| Thread Tools | |
| Display Modes | |
| |