I have to open a batch file automatically in sql. So i have used the below command.
EXECUTE master.dbo.xp_cmdshell 'D:\Databases\batch\123.bat'
Its worked for few times. After that its not working.
One time i have stopped before the process is complete.May be this is the issue.
Now its returns null value.
Can anyone help me how can i open the file in sql.
Thanks & Regards,
View Complete Post