• Reseting Extension Settings:

    Originally this SP was written to

    1- make all declarations

    2- get data to replace (this was dependent on the text being |TO| or something similar- static

    3- replace data with new data

    4- reset data back to static values to use SP again

    New method-

    1-make all declarations

    2-reset data (just using an update)

    3-get data

    4-replace data

    I think there is another method, which requires less code, and eliminates the wait method (something i needed to do, because i was going to use this on a trigger)- What I think you were originally looking for.

    - so here it is

    With the schedule in its original state -- ie |TO|, |CC|, |BC| (you just made it, or you have reset the values)..... you can copy the text that the ExtensionSettings field holds and then just run an update query on the start of the procedure-

    The Pseudo code so it makes a little more sense:

    Update Subscriptions

    Set ExtensionSettings = ~OriginalValue~

    Where (SubscriptionID = @subscriptionID)

    // note* you could also use the UPDATETEXT method, instead of Update

    If any one wants something clarified let me know.

    Jeremy