Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Calling batch file from Stored procedure

Author  Topic 

vimalraj
Starting Member

5 Posts

Posted - 2007-09-12 : 03:32:19
Hi,

How can i call a batch file from a stored procedure?

Thanks,
Vimal

suresha_b
Yak Posting Veteran

82 Posts

Posted - 2007-09-12 : 04:52:08
EXEC master..xp_cmdshell 'BatchFile.BAT'
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2007-09-12 : 06:34:43
why do you need to do this? isn't there any other way?

but it's your requirement and since you didn't clearly specify why, then cheers mate

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -