Getting Windows File System Directory Structure From SQL Server

1). With Help Of master.sys.xp_dirtree Function We get the directory structure of windows System.

This Function Accept One Parameter.

In This Pareamter give the Location.

below give code for getting structure of windows file system.

 

EXEC master.sys.xp_dirtree ‘c:\Inetpub’

Advertisements

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 )

Google+ photo

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

Connecting to %s