TO See Directory Inforamation From Sql Server

TO See Directory Inforamation From Sql Server

Use Following Query
–USE master
–GO
–EXEC sp_configure ‘show advanced options’, 1
–GO
–RECONFIGURE WITH OVERRIDE
–GO
–EXEC sp_configure ‘xp_cmdshell’, 1
–GO
–RECONFIGURE WITH OVERRIDE
–GO
–EXEC sp_configure ‘show advanced options’, 0
–GO

EXEC master ..xp_cmdshell ‘dir c:\’