SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 DTS Fails as Scheduled Job
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jimmy1981
Starting Member

8 Posts

Posted - 07/19/2012 :  04:47:32  Show Profile  Reply with Quote
Hi,
I have searched and found many topics on this but still can't seem to get it to work.

My DTS runs fine when i am logged on and run through EM, yet when I set as a Job and run the job it fails.

The job creates a folder on another server and then moves files from the other server in to this folder. It is on the create folder command that it is failing with permission denied.

Can anyone offer some advice on how to get this working?

Many Thanks,
Jimmy

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 07/19/2012 :  07:03:24  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Try giving the sql server service and agent accounts permission on the folder.



==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Jimmy1981
Starting Member

8 Posts

Posted - 07/19/2012 :  07:18:04  Show Profile  Reply with Quote
Hi nigel,

How do i know which are the sql server service and agent accounts?
Go to Top of Page

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 07/19/2012 :  08:57:30  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Look at the services from control panel.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Jimmy1981
Starting Member

8 Posts

Posted - 07/20/2012 :  06:00:21  Show Profile  Reply with Quote
The user that is set up in Agent service has got full control on the directory where the folder is to be created but still fails with permission denied.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
48064 Posts

Posted - 07/20/2012 :  10:28:13  Show Profile  Reply with Quote
quote:
Originally posted by Jimmy1981

The user that is set up in Agent service has got full control on the directory where the folder is to be created but still fails with permission denied.


what are other tasks that DTS is doing? Also is folder path a local server path or is it UNC path?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Jimmy1981
Starting Member

8 Posts

Posted - 07/23/2012 :  03:07:06  Show Profile  Reply with Quote
The DTS loops through each file on another server and adds it to a SQL table, once it has looped through all files it creates a folder and moves the files in to this folder.

All other tasks are completing with no problems other than the create and move part.

The path is \\servername\DocumentDirectory\Processed\(create folder here)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
48064 Posts

Posted - 07/23/2012 :  10:47:12  Show Profile  Reply with Quote
quote:
Originally posted by Jimmy1981

The DTS loops through each file on another server and adds it to a SQL table, once it has looped through all files it creates a folder and moves the files in to this folder.

All other tasks are completing with no problems other than the create and move part.

The path is \\servername\DocumentDirectory\Processed\(create folder here)


which is server version you're trying to run it on?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Jimmy1981
Starting Member

8 Posts

Posted - 07/23/2012 :  11:00:51  Show Profile  Reply with Quote
2008
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
48064 Posts

Posted - 07/23/2012 :  12:00:22  Show Profile  Reply with Quote
and dts package is also hosted on same server?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Jimmy1981
Starting Member

8 Posts

Posted - 07/24/2012 :  03:03:00  Show Profile  Reply with Quote
it is yes, both are 2008.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000