Please start any new threads on our new site at http://forums.sqlteam.com. 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!
Username:
Password:
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  

gangadhara.ms
Aged Yak Warrior

India
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 ?

Thanks,
Gangadhara MS
SQL Developer and DBA

tkizer
Almighty SQL Goddess

USA
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
http://weblogs.sqlteam.com/tarad/

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