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:\’

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s