Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    15

    Unanswered: how can i execute *.sgl?

    HI
    i want to rite a sysntax in StoreProcedure that execute sysntaxes in My_file.sql .
    How can i do this?
    thanks

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Use xp_cmdshell to run the OSQL command line utility and execute your sql file.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

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