dbTalk Databases Forums  

Scheduled Package Fails Copying Files Across Domains

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


Discuss Scheduled Package Fails Copying Files Across Domains in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Davis
 
Posts: n/a

Default Scheduled Package Fails Copying Files Across Domains - 09-15-2004 , 06:50 PM






This problem is a bit beyond the normal permissions problem of a scheduled
DTS package failing, when it works in the designer.

We have a DTS package that copies a file between servers in different
domains - I believe crossing domains is the source of the problem. This is
done in a batch file using the following two commands:

net use V: \\serverInOtherDomain\ShareName Pwd /user:OtherDomain\User
/persistent:No"
copy c:\test.txt V:\test.txt


The following steps result in the package executing as expected.
1. Terminal Service into SQL Server using the same domain account used by
the SQL Agent service
2. Right Click the DTS package in EM and execute

runs with no problem

The following fails
1. Schedule the package by right clicking and choosing Schedule package.
2. Execute the SQL Agent Job

the Job fails and file is not copied.


Here are some persmissions related settings
1. DTS owner is the same as SQL Agent account
2. Job owner is the same as SQL Agent account.
3. We are TS'd into the server using the SQL Agent account
4. The batch file runs when executed from the command prompt.
5. The DTS package runs when executed logged in as SQL Agent Account.
6. The SQL Job fails every time.

I've spent many hours on this, and me and our network administrator are
stumped. Does anyone have any idea what might be the problem? Should I
take this question to the Windows 2000 group?

Thanks in advance for ANY help on this

Jim Davis



Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Scheduled Package Fails Copying Files Across Domains - 09-16-2004 , 08:01 AM






Jim,

To debug this setup a new job with just that batch file. Play with
redirection switches to see the commands complains. Check whether V mapping
was in fact created by using: net use >c:\test.txt

Ilya

"Jim Davis" <jim.davis (AT) flexcar (DOT) com> wrote

Quote:
This problem is a bit beyond the normal permissions problem of a scheduled
DTS package failing, when it works in the designer.

We have a DTS package that copies a file between servers in different
domains - I believe crossing domains is the source of the problem. This
is
done in a batch file using the following two commands:

net use V: \\serverInOtherDomain\ShareName Pwd /user:OtherDomain\User
/persistent:No"
copy c:\test.txt V:\test.txt


The following steps result in the package executing as expected.
1. Terminal Service into SQL Server using the same domain account used by
the SQL Agent service
2. Right Click the DTS package in EM and execute

runs with no problem

The following fails
1. Schedule the package by right clicking and choosing Schedule package.
2. Execute the SQL Agent Job

the Job fails and file is not copied.


Here are some persmissions related settings
1. DTS owner is the same as SQL Agent account
2. Job owner is the same as SQL Agent account.
3. We are TS'd into the server using the SQL Agent account
4. The batch file runs when executed from the command prompt.
5. The DTS package runs when executed logged in as SQL Agent Account.
6. The SQL Job fails every time.

I've spent many hours on this, and me and our network administrator are
stumped. Does anyone have any idea what might be the problem? Should I
take this question to the Windows 2000 group?

Thanks in advance for ANY help on this

Jim Davis





Reply With Quote
  #3  
Old   
Jim Davis
 
Posts: n/a

Default Re: Scheduled Package Fails Copying Files Across Domains - 09-16-2004 , 03:47 PM



Your suggestion prompted a bit more playing around and I discovered that if
I changed the drive letter mapping from V to T, it worked. Nothing that I
am aware of is using the V drive. Go figure....




"Ilya Margolin" <ilya_no_spam_ (AT) unapen (DOT) com> wrote

Quote:
Jim,

To debug this setup a new job with just that batch file. Play with
redirection switches to see the commands complains. Check whether V
mapping
was in fact created by using: net use >c:\test.txt

Ilya

"Jim Davis" <jim.davis (AT) flexcar (DOT) com> wrote in message
news:OpZq%2363mEHA.3900 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
This problem is a bit beyond the normal permissions problem of a
scheduled
DTS package failing, when it works in the designer.

We have a DTS package that copies a file between servers in different
domains - I believe crossing domains is the source of the problem. This
is
done in a batch file using the following two commands:

net use V: \\serverInOtherDomain\ShareName Pwd /user:OtherDomain\User
/persistent:No"
copy c:\test.txt V:\test.txt


The following steps result in the package executing as expected.
1. Terminal Service into SQL Server using the same domain account used
by
the SQL Agent service
2. Right Click the DTS package in EM and execute

runs with no problem

The following fails
1. Schedule the package by right clicking and choosing Schedule
package.
2. Execute the SQL Agent Job

the Job fails and file is not copied.


Here are some persmissions related settings
1. DTS owner is the same as SQL Agent account
2. Job owner is the same as SQL Agent account.
3. We are TS'd into the server using the SQL Agent account
4. The batch file runs when executed from the command prompt.
5. The DTS package runs when executed logged in as SQL Agent Account.
6. The SQL Job fails every time.

I've spent many hours on this, and me and our network administrator are
stumped. Does anyone have any idea what might be the problem? Should I
take this question to the Windows 2000 group?

Thanks in advance for ANY help on this

Jim Davis







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.