dbTalk Databases Forums  

Copy File as user connection

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


Discuss Copy File as user connection in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chuck P
 
Posts: n/a

Default Copy File as user connection - 02-15-2005 , 11:11 AM






I need to copy a file on another Windows server using a predefined UserAccount.
Is there a way to do this in DTS?
I don't believe I can use the FSO because it would not be connecting with
the correct user account.

I tried using a Text File connection to/from with a transformation in the
middle.
This way I can specify the user account to use.
The transformation unfortunately puts "" and , in the file which I don't
want. Doesn't seem to be a way to get rid of them, The datatransform option
page doesn't seem to work.
thanks,



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

Default Re: Copy File as user connection - 02-15-2005 , 03:13 PM






Chuck

Rcp command is one option. See Windows Help. Another option is to create a
mapped drive for the required user with the NET USE command.

Ilya

"Chuck P" <nospam (AT) crlf (DOT) com> wrote

Quote:
I need to copy a file on another Windows server using a predefined
UserAccount.
Is there a way to do this in DTS?
I don't believe I can use the FSO because it would not be connecting with
the correct user account.

I tried using a Text File connection to/from with a transformation in the
middle.
This way I can specify the user account to use.
The transformation unfortunately puts "" and , in the file which I don't
want. Doesn't seem to be a way to get rid of them, The datatransform
option
page doesn't seem to work.
thanks,





Reply With Quote
  #3  
Old   
Chuck P
 
Posts: n/a

Default Re: Copy File as user connection - 02-17-2005 , 09:19 AM



Can't use rcp because of security policies.
I don't know how to use net use within DTS.


"Ilya Margolin" wrote:

Quote:
Chuck

Rcp command is one option. See Windows Help. Another option is to create a
mapped drive for the required user with the NET USE command.

Ilya

"Chuck P" <nospam (AT) crlf (DOT) com> wrote in message
news:524EC012-A8F2-4F25-BE2E-DEED648E9C3E (AT) microsoft (DOT) com...
I need to copy a file on another Windows server using a predefined
UserAccount.
Is there a way to do this in DTS?
I don't believe I can use the FSO because it would not be connecting with
the correct user account.

I tried using a Text File connection to/from with a transformation in the
middle.
This way I can specify the user account to use.
The transformation unfortunately puts "" and , in the file which I don't
want. Doesn't seem to be a way to get rid of them, The datatransform
option
page doesn't seem to work.
thanks,






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

Default Re: Copy File as user connection - 02-23-2005 , 08:26 AM



Chuck,

Create a batch file with three lines. One for deleting a mapped drive, one
for creating a brand new mapped drive, and one to exit with 0 exit code.
Below is an example:

net use N: /d
net use N: "\\Server\Share" /user:[domainname\]username /persistent:no
exit 0

Use Execute Process task to execute the batch file before using the mapped
drive. It will be accessible while package is running.

Ilya

"Chuck P" <nospam (AT) crlf (DOT) com> wrote

Quote:
Can't use rcp because of security policies.
I don't know how to use net use within DTS.


"Ilya Margolin" wrote:

Chuck

Rcp command is one option. See Windows Help. Another option is to create
a
mapped drive for the required user with the NET USE command.

Ilya

"Chuck P" <nospam (AT) crlf (DOT) com> wrote in message
news:524EC012-A8F2-4F25-BE2E-DEED648E9C3E (AT) microsoft (DOT) com...
I need to copy a file on another Windows server using a predefined
UserAccount.
Is there a way to do this in DTS?
I don't believe I can use the FSO because it would not be connecting
with
the correct user account.

I tried using a Text File connection to/from with a transformation in
the
middle.
This way I can specify the user account to use.
The transformation unfortunately puts "" and , in the file which I
don't
want. Doesn't seem to be a way to get rid of them, The datatransform
option
page doesn't seem to work.
thanks,








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.