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

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 what this code will do ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

549 Posts

Posted - 11/30/2012 :  00:35:17  Show Profile  Reply with Quote
DECLARE @cmd varchar(1000)
SET @cmd = 'ftp -i -s:E:\Earth\UK\cmds.txt mail.earthmove.com'
EXEC master..xp_cmdshell @cmd

Please help me to understand what exactly this code will do ?

Gangadhara MS
SQL Developer and DBA

Almighty SQL Goddess

38160 Posts

Posted - 11/30/2012 :  01:04:29  Show Profile  Visit tkizer's Homepage  Reply with Quote
It's going to run a script on an ftp server. Open up the cmds.txt file to see what it's going to do.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
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.03 seconds. Powered By: Snitz Forums 2000