What will the below command do?

EXEC xp_cmdshell 'RENAME D:\onlytest RenamedFolderonlytest'

 Posted by Rajnilari2015 on 1/24/2016 | Category: Sql Server Interview questions | Views: 2001 | Points: 40
Select from following answers:
  1. Renames D:\onlytest to D:\RenamedFolderonlytest
  2. Creates a new folder D:\onlytest and then Rename to D:\RenamedFolderonlytest
  3. If D:\onlytest exists, it deletes first and then creates a new folder under D:\RenamedFolderonlytest
  4. Renames D:\RenamedFolderonlytest to D:\onlytest
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response