April 29, 2013 at 10:28 am
Hi,
I have placed a file system task inside foreach loop container and the operator is rename file. I'm wondering if it's possible to find all files (regardless of file extensions) that contain "circle" and then replace it with "square"? If so, how I can accomplish this?
Thanks!
April 29, 2013 at 12:44 pm
I can't help here because I don't use SSIS. A thoughtful but simple DOS "rename" would do this, though.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 29, 2013 at 9:47 pm
Jeff Moden (4/29/2013)
I can't help here because I don't use SSIS. A thoughtful but simple DOS "rename" would do this, though.
This solution would work and anything you can run in command prompt, you can also run in SQL using xp_cmdshell (http://msdn.microsoft.com/en-us/library/ms175046.aspx), which has security risks. But, if you are willing to overlook the risks, you can put this in an SSIS package.
--------
For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
You can also follow my twitter account to get daily updates: @BLantz2455
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply