dbTalk Databases Forums  

Error from the DTS on scheduled task

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


Discuss Error from the DTS on scheduled task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Jayaseelan
 
Posts: n/a

Default Error from the DTS on scheduled task - 05-21-2004 , 05:16 AM






Hi,

The DTS package transforms data from the flat files (network drive) onto
table’s works fine if it is initiated from package itself. On scheduling
this DTS through the task gives the following error.

______________________
Transformation, Error = -2147467259 (80004005)

Error string: Error opening data file: The specified network
password is not correct.

______________________

Thanks,
John Jayaseelan


Error source: Microsoft Data Transformation Services Flat File
Rowset Provider

Help file: DTSFFile.hlp

Help context: 0

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-21-2004 , 07:53 AM






INF: How to Run a DTS Package as a Scheduled Job
(http://support.microsoft.com/?kbid=269074)

Support WebCast: Data Transformation Services Package Scheduling - An Inside
Look
(http://support.microsoft.com/default...webcasts/wc102
301/wcblurb102301.asp)


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

"John Jayaseelan" <john.jayaseelan (AT) caravan-club (DOT) co.uk> wrote

Quote:
Hi,

The DTS package transforms data from the flat files (network drive) onto
table's works fine if it is initiated from package itself. On scheduling
this DTS through the task gives the following error.

______________________
Transformation, Error = -2147467259 (80004005)

Error string: Error opening data file: The specified network
password is not correct.

______________________

Thanks,
John Jayaseelan


Error source: Microsoft Data Transformation Services Flat File
Rowset Provider

Help file: DTSFFile.hlp

Help context: 0

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #3  
Old   
John Jayaseelan
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-21-2004 , 08:45 AM





Daren,

Thanks for your reply.

The document 269074 suggested using the UNC path (\\srvname\filename)
instead of mapped drive which also gives the same error message.

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #4  
Old   
Rand Boyd [MSFT]
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-21-2004 , 10:53 AM



The error you are getting impies that the SQL Server Agent account does not
have the proper permissions to the share where files are located, or at
least the password is incorrect.

Does the account that SQL Server Agent runs under have access to the UNC
path? Log into the SQL Server machine with that account and see iy you can
access the share. If not then the package will fail.


Rand
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #5  
Old   
John Jayaseelan
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-21-2004 , 10:54 AM





Daren,

Thanks for your reply.

The document 269074 suggested using the UNC path (\\srvname\filename)
instead of mapped drive which also gives the same error message.

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #6  
Old   
Tony-ICW Group
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-21-2004 , 04:11 PM



I am having the same problem as you do. Did yours run successfully
This is the error I am getting

Error string: Error opening datafile: Access is denied

I running on windows 2000, Microsoft windows NT autenticatio
file is a text file located in the serve
file path is \\servername\foldername\filename.txt

Reply With Quote
  #7  
Old   
Darren Green
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-22-2004 , 02:45 AM



In message <8B086D8C-602B-4C23-A73F-4F417BC2640E (AT) microsoft (DOT) com>,
Tony-ICW Group <tmangahas (AT) icwgroup (DOT) com> writes
Quote:
I am having the same problem as you do. Did yours run successfully?
This is the error I am getting:

Error string: Error opening datafile: Access is denied.

I running on windows 2000, Microsoft windows NT autentication
file is a text file located in the server
file path is \\servername\foldername\filename.txt
As Rand suggested, you need to check what permissions the SQL Server
Agent service account has, as (syadmin owned) jobs will be executed
under the account, so those credentials are used to make the connection
to the remote machine.

You can test the credentials by logging onto the server desktop itself,
using the service account, and then try and go to the unc path.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #8  
Old   
John Jayaseelan
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-24-2004 , 03:56 AM



Rand & Darren,

The account which is used for the sql server agent has access to the
files (Files are in a UNIX machine accessed through interdrive
configuration).

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #9  
Old   
Darren Green
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 05-25-2004 , 01:37 AM



If the account has permissions then you do not have a problem.

Since you do of course, have you tested this whilst logged onto the server
under that account?
Double check the account that is being used. One method of proving the
account is to use an ActiveX Script Task to detect and then log this
information. For example this script will log the machine and user where the
package is currently executing to the event log. These should be the service
account and the SQL server itself.

Function Main()

Dim WshShell, WshNetwork

Set WshShell = CreateObject("WScript.Shell")
Set WshNetwork = CreateObject("WScript.Network")

sLogString = "ComputerName: " & WshNetwork.ComputerName & _
vbCrLf & _
"UserDomain: " & WshNetwork.UserDomain & vbCrLf & _
"UserName: " & WshNetwork.UserName & vbCrLf

WshShell.LogEvent 0, sLogString

Set WshShell = Nothing
Set WshNetwork = Nothing

Main = DTSTaskExecResult_Success
End Function


If this all fails to turn up the problem, then it may be related to
UNIX/interdrive specifically which I'm afraid I am not familiar with, I just
assume it integrates with Windows security to provide seamless file shares
such that a user does not know of it is Windows or Unix at the back end.


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



"John Jayaseelan" <john.jayaseelan (AT) caravan-club (DOT) co.uk> wrote

Quote:
Rand & Darren,

The account which is used for the sql server agent has access to the
files (Files are in a UNIX machine accessed through interdrive
configuration).

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #10  
Old   
John Jayaseelan
 
Posts: n/a

Default Re: Error from the DTS on scheduled task - 06-03-2004 , 10:09 AM



Daren,

The Activex script logged correct server,domain & User details on the
event log. But the Schduled DTS still gives the same message.

Thanks



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

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.