August 13, 2009 at 10:22 am
how to move the files from one server to another server?
August 13, 2009 at 10:52 am
open the desired location in windows explorer and source in another window in explorer then copy and paste.
August 13, 2009 at 11:27 am
i want to copy through xp_cmdshell ?
what is the command.............
August 13, 2009 at 11:29 am
To copy files from the command level? The command is "COPY".
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
August 13, 2009 at 11:40 am
in server1 , file is C:\folder1
i want to copy that file in server2 , file is D:\folder2
pls give the complete command.
August 13, 2009 at 11:51 am
charipg (8/13/2009)
in server1 , file is C:\folder1i want to copy that file in server2 , file is D:\folder2
pls give the complete command.
I'm curious. What is your position in your organization and how is it that you do not know how to copy a file? Please give us complete details.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
August 13, 2009 at 11:55 am
charipg (8/13/2009)
in server1 , file is C:\folder1i want to copy that file in server2 , file is D:\folder2
pls give the complete command.
dude, you are in wrong forum I believe.
August 13, 2009 at 12:00 pm
master..xp_cmdshell 'copy C:\folder1 \\ + @Server1 '
is it correct?
August 13, 2009 at 12:02 pm
charipg (8/13/2009)
master..xp_cmdshell 'copy C:\folder1 \\ + @Server1 'is it correct?
Still waiting for an answer to my question ...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
August 13, 2009 at 12:06 pm
Write your question clearly and easy to understandable, then only the forum members can help you to resolve the issue.
Do you want to copy a file inside SQL using xp_cmdshell?
Use the below.
master..xp_cmdshell 'Copy c:\folder1\Test.txt d:\Folder2\'
Thanks
Jay
http://www.sqldbops.com
August 13, 2009 at 12:07 pm
EXEC xp_cmdshell 'copy c:\folder1\file1
\\server2\folder2\file1, NO_OUTPUT';
correct?
August 13, 2009 at 12:08 pm
thanks ............got it.............
August 13, 2009 at 12:22 pm
charipg (8/13/2009)
EXEC xp_cmdshell 'copy c:\folder1\file1\\server2\folder2\file1, NO_OUTPUT';
correct?
still waiting ...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
August 13, 2009 at 12:26 pm
i am new to sql..........first time i am using extended sp.............
thanks.............
August 13, 2009 at 12:43 pm
There are other ways to move files between servers without using xp _ cmdshell. Would you please explain what you are trying to accomplish and why you think it has to be done from with T-SQL using xp _ cmdshell?
Off topic for anyone interested, I could not post the above comment with the spaces removed from around the underscore character. This only occurs here at work on both of my desktop systems. Go figure.
Viewing 15 posts - 1 through 15 (of 23 total)
You must be logged in to reply to this topic. Login to reply