About alter statement

  • About alter statement

    We have rolled out a new version of an application.

    We used alter statement to modify some of our stored procedures.

    When we viewed them in production it is looking like modified one.

    But when application is executing, its referencing old SP only

    I guess the older version is still referenced.

    Can someone help us on this?

  • Maybe your new procedures arent compiled?

  • First check whether u have alter rights,

    then check with the procedures correctly that the changes made by u were reflected in it, by taking the SP from database.

    if not alter the procedure again,

    check whether u have made some changes in talbe or triggers, if so do that changes too...

    Hope it will work fine now.

    Thanks - Raja

  • try sp_helptext, this will give you the procedure as it is on the database

  • Make sure the app is pointing at the right database.

    Make sure that you don't have 2 copies of the procedure in different schemas

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • And in addition to making sure the App is pointed at the right database, make sure you are.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 6 posts - 1 through 5 (of 5 total)

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