Saturday, August 27, 2011

Execute BAT file from SQL Server


You can use xp_cmdshell to call a bat file from SQL Server, below are the scripts for that -- Calling batch file from SQL Server, this is batch file without parameter

1.EXEC MASTER..XP_CMDSHELL 'C:\SAMPLEBATFILE.BAT'
Post a Comment

Find a cool free stuff everyday

Giveaway of the Day

Hiren Bharadwa's Posts

DotNetJalps