Open a Text File From SQL Server using xp_cmdshell

December 29 08:36 2010

For this we need to enable xpCMDShell enable in Surface Area Configuration







Goto Right Click on Server > Facets

Select Surface Area Configuration

Go to

xPcmdShell enable

Now go to New Query

EXEC master.dbo.xp_cmdshell ‘type d:test.txt’
















view more articles

About Article Author


a gadget and internet addict , a red hat certified linux administrator with skills in dataware development and online technologies., follow me on twitter @abhilashsnair

View More Articles