Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 21st, 2004, 05:22 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default xp_cmdshell

I want to use this procedure to move some files around within a ASP application. Do anyone have experience of using these and is there likely to be any problems?

Thanks

Steve
Reply With Quote
  #2 (permalink)  
Old November 21st, 2004, 10:58 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Can you be more specific on the task that you like to accomplish or post sample

Jaime E. Maccou
Applications Analyst
Reply With Quote
  #3 (permalink)  
Old November 21st, 2004, 01:08 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Basically I want to copy one folder from c:\ to c:\test.

This works fine but before I use this in a production environment I wanted to be sure there were no problem with this approach.

Reply With Quote
  #4 (permalink)  
Old November 22nd, 2004, 04:15 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

you should have no problems using xp_cmdshell but keep in mind that you should not grant users who do not have admin privileges to use this extended procedure. Using and having such privileges allows you do execute any (DOS) command on your servers OS.††

EXEC xp_cmdshell 'copy c:\sqldumps\pubs.dmp \\server2\backups\sqldumps',
†††NO_OUTPUT

You may also want to check out BCP


Jaime E. Maccou
Applications Analyst
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB script using xp_cmdshell getfunky SQL Server 2000 1 February 23rd, 2007 02:38 AM
Issues with xp_cmdshell ninel SQL Server 2000 1 August 26th, 2006 10:39 AM
xp_cmdshell help needed. Clauddvon SQL Server 2000 2 March 1st, 2006 11:00 AM
Securing xp_cmdshell Steve_tucker SQL Server 2000 1 December 8th, 2004 06:44 PM
Executing xp_cmdShell Hari_Word SQL Server 2000 1 August 13th, 2004 04:35 PM



All times are GMT -4. The time now is 06:00 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.