Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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 ?
 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'
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

38200 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  
 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.12 seconds. Powered By: Snitz Forums 2000