all groups > sql server dts > august 2004 >
You're in the

sql server dts

group:

DTS and ASP


DTS and ASP GregIpaper
8/31/2004 8:54:59 AM
sql server dts:
I have seen many examples of ASP and DTS package, however
once I try it from the web it is crashing , I am trying
just a simple package that moves an excel doc to a Sql
server table. Works thu enterprise but not thru web. Does
Excel need to be installed on Web server, am I missing a
ODBC or ole DB driver on the server. When coming in thru
the web what user is it trying to use, do I need to set up
a particular type of user with what permissions? I can do
a delete on a table, I just can't move data from point A
to point B. Any help on this is greatly appreciated.

Re: DTS and ASP Darren Green
9/1/2004 8:47:04 AM
First things to check are -

DTS components correctly installed on the web server

Correctly determine the execution context and verify that this account has
permissions to load and execute any commands inside the package.

If you give us an error message it may help.


--
Darren Green
http://www.sqldts.com


[quoted text, click to view]

Re: DTS and ASP Darren Green
9/1/2004 8:50:19 AM
....and no you don't need Excel installed on the web server, just DTS
components and normal MDAC which would already be there I assume for your
website to work at all..

--
Darren Green
http://www.sqldts.com

[quoted text, click to view]

Re: DTS and ASP GregIpaper
9/1/2004 10:27:32 AM
Not sure what components you are referring to ?? The
connection to Sql server is there, I can do deletes, just
cannot do a transfer of data from A to B. I am thinking
it's a security issue signing in thru the Intranet.
I understand when coming in thru the web the user assigned
in the application is not used (true ??). I am still not
sure what I am missing The code came straight from
www.sqldts.com website. Surely it can't be this hard, I
am just missing something, course I get not real error
message back other than Step [DTSStep_DTSDataPumpTask_1]
failed
Task "Transform Data Task: undefined"

Thanks for your help


[quoted text, click to view]
Re: DTS and ASP William Pierce
9/1/2004 2:11:30 PM
I built a similar application though not using Excel. However, a few things
to watch out for:

a) The app under ASP.net runs as the ASP.net user. Make sure that your
database has appropriate permissions.
b) Verify your authentication mechanisms -- Windows/SQL server
authentication.

One thing I would try to narrow the problem would be to modify your app
first to see if it is able to process the Excel file (open it and dump out
contents to a text file). If so, the problem can be narrowed to
interactions with the SQL Server.

[quoted text, click to view]

Re: DTS and ASP Darren Green
9/2/2004 10:26:11 AM
The components I refer to are the DTS components. DTS is a set of COM DLLs
which must be installed on the machine running the package. Can you call a
COM DLL from ASP if not installed on the web server, no, so neither can you
create DTS.Package if not installed correctly. By the sound of your
description, this is not the case, as the objects are created, and the
package is loaded OK.

By default application code called from ASP uses IWAM_MACHINENAME so does
this account have permissions to create the file?
The SQLDTS article also suggest using a COM object setup in COM+ so that you
can use an identity and abstract the permissions required for DTS away from
those used by ASP.


--
Darren Green
http://www.sqldts.com


[quoted text, click to view]

Re: DTS and ASP gregipaper
9/2/2004 2:50:37 PM
Error in Object Execution
Number: -2147467259
Source: Microsoft OLE DB Provider for SQL Server
Description: Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection.


This is the error I receive when executing thru the com
component. Still no luck, least on the server, it will run
from my laptop windows XP iis. Just not from server. So
must be a privledge thing ?????

[quoted text, click to view]
AddThis Social Bookmark Button