Results 1 to 3 of 3

Thread: Replace string using xp_cmdshell in text file

  1. #1
    Join Date
    Oct 2007
    Posts
    22

    Replace string using xp_cmdshell in text file

    How to replace a string by another string in an existing text file using xp_cmdshell

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Don'k think windows comes with such utility. If you have third party tool for that on sql server, can call it with xp_cmdshell in sql.

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use powershell commands to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •