Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    United Kingdom
    Posts
    6

    Lightbulb Unanswered: reading sql from a disk file

    It's probably a really easy thing to do, but I can't find out how to do it, so hopefully somebody can spare the time to help.

    I want to read in T-SQL contained in a file held on disk and execute it in a stored procedure.

    Anybody know how to get the contents of the text file into a variable so I can exec it ?

    Thanks for your time.

  2. #2
    Join Date
    Jul 2003
    Location
    The Dark Planet
    Posts
    1,401

    Re: reading sql from a disk file

    Originally posted by dick donny
    It's probably a really easy thing to do, but I can't find out how to do it, so hopefully somebody can spare the time to help.

    I want to read in T-SQL contained in a file held on disk and execute it in a stored procedure.

    Anybody know how to get the contents of the text file into a variable so I can exec it ?

    Thanks for your time.
    Cross Post
    Get yourself a copy of the The Holy Book

    order has no physical Brett in The meaning of a Kaiser . -database data

Posting Permissions

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