Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003

    Unanswered: executing one .sql file from another

    I need to run a x.sql fil from another y.sql file. The y.sql file is executed by OSQL.

    I can't find out if it is posible or not. I triet using EXEC but that doesn't work.

  2. #2
    Join Date
    Jun 2003
    cape town, south africa
    if you create each as stored procedures, you can exec them from eachother...otherwise (though it is a terrible habit and not recommended) you can use xp_CMDShell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts