How can we help you today? How can we help you today?

Does v9 support both "ALTER" & "If exists .. DROP + CREATE"?

Can the user choose (for at least Stored Procs & Functions) to choose an update script that either has ALTER or IF EXISTS DROP/CREATE for objects with differences - as has been promised so many times in the past?
fred
0

Comments

33 comments

  • Barry K
    I have run into this issue on numerous occasions. We have functions that call themselves recursively. If you add a parameter to the function that calls itself, simply doing an alter function will not work because it will give you an error that "the procedure or function has too many arguments specified".

    If you drop and create the function, it will create it properly.
    Barry K
    0
  • David Atkinson
    The latest 9.5 Beta has options to add existence checks and DROP/CREATE.

    More details here:
    http://www.red-gate.com/MessageBoard/vi ... hp?t=14113

    Please give it a go and let us know if this meets your requirements.

    David Atkinson
    Product Manager
    Red Gate Software
    David Atkinson
    0
  • David Atkinson
    The latest 9.5 Beta has options to add existence checks and DROP/CREATE.

    More details here:
    http://www.red-gate.com/MessageBoard/vi ... hp?t=14113

    Please give it a go and let us know if this meets your requirements.

    David Atkinson
    Product Manager
    Red Gate Software
    David Atkinson
    0

Add comment

Please sign in to leave a comment.