So, we have been having this really weird problem. We have had some stored procedures revert back to old versions seemingly on their own.
Here is one example (very detailed).
On Friday, I identified two bugs in one of my procs where I had an issues with the dates and a problem in some logging I build into it.
At approx. Noon of Friday I released an update to the stored proc to edit the dates, ran it a couple of times, then at approx 4:40PM I released an update to the logging, and ran it one more time. Everything worked great.
At 5:00PM on Saturday I ran the proc again, and again it ran fine (all of the new code was included).
On Monday, I ran the proc again, and suddenly it was reverted back to the way it was on Friday morning before I fixed the two errors.
So, on Monday at 1:00PM I changed the proc again and so far, everything is fine.
-----
Now, I am trying to figure out what the heck happened.
I did some research. I ran the Schema Changes History on the DB. And sure enough. between Friday 4:45PM and Monday 1:00PM there were no Alters to the stored proc.
So I dug deeper, thought maybe there was a mysterious restore done to the database (even though the data didn't revert, just the stored proc). Well again, there have been no restores on the DB since the last reboot (2 weeks ago), which is not surprising since I have not done any restores.
-----
So, anybody got any ideas on what could cause this?
Environment:
MSSQL 2005 Enterprise (64-bit).
Latest SPs and Hot-Fixes.
AMD64 processor
16GB Memory
Here is one example (very detailed).
On Friday, I identified two bugs in one of my procs where I had an issues with the dates and a problem in some logging I build into it.
At approx. Noon of Friday I released an update to the stored proc to edit the dates, ran it a couple of times, then at approx 4:40PM I released an update to the logging, and ran it one more time. Everything worked great.
At 5:00PM on Saturday I ran the proc again, and again it ran fine (all of the new code was included).
On Monday, I ran the proc again, and suddenly it was reverted back to the way it was on Friday morning before I fixed the two errors.
So, on Monday at 1:00PM I changed the proc again and so far, everything is fine.
-----
Now, I am trying to figure out what the heck happened.
I did some research. I ran the Schema Changes History on the DB. And sure enough. between Friday 4:45PM and Monday 1:00PM there were no Alters to the stored proc.
So I dug deeper, thought maybe there was a mysterious restore done to the database (even though the data didn't revert, just the stored proc). Well again, there have been no restores on the DB since the last reboot (2 weeks ago), which is not surprising since I have not done any restores.
-----
So, anybody got any ideas on what could cause this?
Environment:
MSSQL 2005 Enterprise (64-bit).
Latest SPs and Hot-Fixes.
AMD64 processor
16GB Memory