using T-SQL execute a batch file

  • how can i execute a batch file from T-SQL?

    thanks !!!

  • I recommend using Books OnLine (BOL) to get the full story, but xp_cmdshell allows you to perform a WinX command shell string.

    It's like this:

    xp_cmdshell '<filepath>\<filename>'

    Regards,

    SJTerrill

  • thanks, SJ

    i'll try it..

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply