• You must be manipulating the string at some point between getting the definition and executing the dynamic code otherwise the create statement will fail creating a proc with the same name.

    Can you post the actual code that is giving you that error.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]