Results 1 to 2 of 2

Thread: Writing dynamic sql to txt file

  1. #1
    Join Date
    Dec 2002
    Posts
    7

    Cool Writing dynamic sql to txt file

    Problem: We enter configuration settings of an application through a GUI front end to development database executing a stored procedure.

    Then these settings need to be done in testing database, and then finally to production database.
    But this is like re-entering those values in testing or production environments.

    I am wondering if there is a way we could save the stored procedure script we use in development database in txt file and then execute it in other environments.
    We don't have permissions to use xp_cmdshell to move dynamic sql to txt file.
    Is there any other way to achive this from ASP.NEt front end -like returing the script from stored procedure (as xml maybe) and then saving to a txt file?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You can script sp in ssms then run it on any server.

Posting Permissions

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