Error in Generating scripts

  • Bhuvnesh (8/18/2010)


    Jeff Moden (8/18/2010)


    Bhuvnesh (8/18/2010)


    Anamika (8/18/2010)


    Hi,

    SELECT * FROM [font="Arial Black"]SYSOBJECTS[/font] WHERE XTYPE = 'P'

    output of this query gives the new SP name.

    My problem is while getting the create script for the same gets created in old name only.

    Thanks,

    Regards,

    -Ami

    you cant always rely on these DMVs for some information.try to use system objects like [font="Arial Black"]sysobjects [/font], sysindexes

    ??? :blink:

    jeff i didnt get you here

    Heh... understood. I didn't get you either. Maybe its just something out of context. Op posted something about sysObjects and something not working correctly. You agree and then post the same thing about sysObjects. That's just a wee bit hard to follow. 😛

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing post 16 (of 15 total)

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