How to retrieve data from syscomments table?

  • Hi,

    I have executed the following query...

    select text from syscomments where id = 2099048

    This is to retrive the Code in the procedure.

    I could see only portion of the 'procedure' in the output.

    /********/

    text

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    CREATE PROCEDURE dbo.dt_displayoaerror

    @iObject int,

    @iresult int

    as

    set nocount on

    declare @vchOutput varchar(255)

    declare @hr int

    declare @vchSource varchar(255)

    declare @vchDescription varchar(255)

    exec @

    (1 row(s) affected)

    /**************/

    How can I retrieve the entire code of the procedure using syscomments table.

    Regards,

    Ezhilan

  • If you are running this in QA, go to Tools>Options>Results and set Maximum characters per column.

  • Thanks...

    Its working fine..

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply