SQL Server Performance Forum – Threads Archive
Problem with DTS running from Asp.net
Hopefully someone can help. I am trying to run a DTS package from a aspx web page. The job sees the DTS package. It successfully runs step 1, but failes on the datapump task. I was able to determine that that it is failing due to a permissions, but I can’t determine what account it is trying to use. See error below.<br /><br />Step ‘DTSStep_DTSDataPumpTask_1′ failed<br /><br />Step Error Source: Microsoft Data Transformation Services Flat File Rowset Provider<br />Step Error Description:Error opening datafile: Logon failure: unknown user name or bad password.<br /><br />Step Error code: 80004005<br />Step Error Help File<img src=’/community/emoticons/emotion-2.gif’ alt=’
Are you trying to run the actual DTS package or a scheduled job of the DTS package?
Where is this file located, on the network or the local server?
Does it work when you execute the DTS package (or job) manually? In any case the user executing the DTS package, I assume the user logging in to your website with Windows Authentication (since you use impersonate), need to have rights to read/write to the file. If it’s a sql job you are executing then the sql agent account need to have access. This post might help:
http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=3886 ASP. Net Identity Matrix:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP05.asp
]]>