Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2003
    Posts
    223

    Unanswered: Dose sp_helptext loss something?

    I am using sp_helptext to generate script of stored procedure. However someone said sp_helptext loss something if stored procedure is big. That means the script is not completed. Is it true?

    Thanks

    ZYT

  2. #2
    Join Date
    Feb 2004
    Location
    Burbank & Santa Cruz de la Sierra
    Posts
    3,716
    Just curious, why not use Enterprise Manager to right-click on the stored procedure, then go to All Tasks -> Generate SQL Script...?

    Then you can punch the "preview" button and then the "copy" button to get the script onto your clipboard.
    aka "Paul"
    Non est ei similis.

    I just read "100 Things To Do Before You Die". I was surprised that "Yell for help!!" wasn't one of them

  3. #3
    Join Date
    Mar 2003
    Posts
    223
    Thanks for reply.

    Because I need to create script from stored procedure.

  4. #4
    Join Date
    Feb 2004
    Location
    Burbank & Santa Cruz de la Sierra
    Posts
    3,716
    If you need to create a script from the stored procedure, why not use Enterprise Manager to right-click on the stored procedure, then go to All Tasks -> Generate SQL Script...?

    Then you can punch the "preview" button and then the "copy" button to get the script onto your clipboard.
    aka "Paul"
    Non est ei similis.

    I just read "100 Things To Do Before You Die". I was surprised that "Yell for help!!" wasn't one of them

  5. #5
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    sp_helptext only returns the first 4000 chars as i recall.

  6. #6
    Join Date
    Feb 2004
    Location
    Burbank & Santa Cruz de la Sierra
    Posts
    3,716
    Good Job, Jez...probably more constructive than a third post from me
    aka "Paul"
    Non est ei similis.

    I just read "100 Things To Do Before You Die". I was surprised that "Yell for help!!" wasn't one of them

  7. #7
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    check out this app I wrote if you want to generate scripts in an automated way:

    http://www.codeplex.com/scriptdb

Posting Permissions

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