Comment On Practice Makes Perfect

Most of us IT professionals have come to learn just how cautious one must be when upgrading third-party components. Some of us have learned the hard way, first proclaiming, pssh, big deal, it's just Service Pack 3; it couldn't possibly break our application, and then learning that, in fact, Service Pack 3 was a big deal and did break the application. Others are naturally cautious and try to make sure planning, testing, and all those other things are done prior to any upgrades. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Practice Makes Perfect

2007-02-12 13:36 • by hey (unregistered)
First, and those people should be shot.

Re: Practice Makes Perfect

2007-02-12 13:39 • by Massimo (unregistered)
This is absolutely crazy... a manager with admin access to those servers, and he wasn't even *aware* a whole six-month project was running in order to upgrade them?!?

WTF!

Re: Practice Makes Perfect

2007-02-12 13:39 • by Everett (unregistered)
God bless the PHB

Re: Practice Makes Perfect

2007-02-12 13:41 • by A Nonny Mouse (unregistered)
a manager who had the foggiest clue on how to go about upgrading db servers? you must be kidding

Re: Practice Makes Perfect

2007-02-12 13:42 • by ccanni1028 (unregistered)
And why would this manager even have the required access level?

Magic people

2007-02-12 13:42 • by strictnein
Sounds like one of those magic people that, even though he assuredly attended all the planning meetings, still had no clue what was going on around him.

Oh, how wonderful it must be to be an oblivious manager. You have no idea what you're doing, except for that you know that you can do no wrong.

Re: Practice Makes Perfect

2007-02-12 13:45 • by Billy Bob Jamie Joe Hickboy (unregistered)
I had a DB manager decide to have a bright idea to upgrade our DB server the week before delivery to the customer. I thank God every day that he didn't have the key to the server room and the IT guys were obstinate enough to delay his upgrade until after the tested software was out the door along with a duplicate DB server.

He upgraded the server 1 week after we delivered the software and said everything looks good before he went on a month vacation. However, none of the software queries worked because they would work with the new system. It took the entire DB team a month to get everything squared away. When he came back from vacation, he wanted to do another upgrade. Fortunately management let him go at the request of everyone else on the team.

Re: Practice Makes Perfect

2007-02-12 13:50 • by Steven (unregistered)
119520 in reply to 119510
Everett:
God bless the PHB

I think the correct phrase is "God smite the PHB"

Re: Practice Makes Perfect

2007-02-12 13:56 • by SomeCoder (unregistered)
I would be curious as to know what kind of queries failed to function the same way under SQL Server 2005 opposed to SQL Server 2000.

I recently upgraded one of our products to use SQL Server 2005 from 2000. The upgrade was simply a matter of setting up rights on the new server, and then importing the old database onto the new server. That's it. I didn't have to change any queries or any code. Just had to point the app at the new server.

Granted, this app isn't doing anything too complicated but I'm still surprised to see stuff just out and out failing on 2005 vs 2000.

Re: Practice Makes Perfect

2007-02-12 13:57 • by dbomp (unregistered)
You're just trying to freak us out about Oracle and VARCHAR3, right? RIGHT?

Re: Practice Makes Perfect

2007-02-12 13:58 • by not a phb (unregistered)
119524 in reply to 119520
and was the putz who did the upgrade fired?

why wasn't the upgrade rolled back rather than fire-fighting for that long?

Re: Practice Makes Perfect

2007-02-12 14:06 • by ObiWayneKenobi (unregistered)
The Real WTF here is that there was code that broke during an upgrade of SQL 2000 to SQL 2005! Seriously, that's not a major upgrade at all; I've upgraded a lot of servers like that and seen plenty more, and they all went smooth as hell. I agree this manager was an idiot to upgrade it out of schedule, but nothing should have even remotely broken due to it!

Captcha: cognac -- maybe the developers of this web app were drinking it?

Re: Practice Makes Perfect

2007-02-12 14:07 • by Lastchance
119532 in reply to 119513
ccanni1028:
And why would this manager even have the required access level?


<Lumbergh>Umm, yeahh, I'm gonna need the domain admin password this weekend. That'd be great.</Lumbergh>

Re: Practice Makes Perfect

2007-02-12 14:12 • by database junkie (unregistered)
119537 in reply to 119524
I'd hate to work for a company where the managers had so little respect for process, production systems, or their own staff members who had specialized training. Cripes -- don't let him near the source code!

That manager should have been let fired immediately, or at least promoted to where he could do less damage.

Re: Practice Makes Perfect

2007-02-12 14:16 • by Anonymouse (unregistered)
119540 in reply to 119515
Billy Bob Jamie Joe Hickboy:
He upgraded the server 1 week after we delivered the software and said everything looks good before he went on a month vacation. ... When he came back from vacation, he wanted to do another upgrade. Fortunately management let him go at the request of everyone else on the team.

That should (and usually will) happen to anyone in any enterprise who goes on vacation for a month at a time. If they can do without you for a month, they can do without you forever, even if you didn't bork anything up before you left.

Re: Practice Makes Perfect

2007-02-12 14:18 • by not a phb (unregistered)
119542 in reply to 119537
database junkie:
I'd hate to work for a company where the managers had so little respect for process, production systems, or their own staff members who had specialized training. Cripes -- don't let him near the source code!

That manager should have been let fired immediately, or at least promoted to where he could do less damage.

I sympathize with your intent, but promoting this person would just create a plethora of wtf management (we don't need qa, it works as coded - just deploy it).

Sometimes you have to shoot the mad dog...

Re: Practice Makes Perfect

2007-02-12 14:19 • by Alex Ibrahim (unregistered)
119543 in reply to 119529
My guess is that there are several factors. The most probable being that the application was developed for an even earlier version of SQL Server. I am not intimately familiar with MS SQL Server (read: only test and student deployments) but it is easy to imagine an application developed for v6.0 which may have been supported by deprecated functions in SQL 2000, but those functions are gone in 2005.

Also, you may also be failing to consider the impact of moving from 32 to 64 bit. There are all sorts of data problems that can occur in any database undergoing such a change. Again an application coded for SQL 2000 32 bit shouldn't have many problems, but if the application is older... well.

Finally, the fact that it is MS SQL Server may itself be an obfuscation by this sites author to "protect the innocent." They could have been moving from MySQL to Oracle on Red Hat for all we know.

Re: Practice Makes Perfect

2007-02-12 14:20 • by Derek Johnston (unregistered)
119544 in reply to 119511
A Nonny Mouse:
a manager who had the foggiest clue on how to go about upgrading db servers? you must be kidding


How hard can it be? Insert CD, Upgrade? Yes, click, click, click and yer done...

Re: Practice Makes Perfect

2007-02-12 14:24 • by Drum D.
Shoot, quarter, burn, hang ... not necessarily in this order though.

Re: Practice Makes Perfect

2007-02-12 14:27 • by ParkinT
119549 in reply to 119545
"That person should be sentenced to life in front of a firing squad" -Henry Blake

Re: Practice Makes Perfect

2007-02-12 14:29 • by Pap (unregistered)
I make up my own captchas and they work!

captcha: sexytime!

Re: Practice Makes Perfect

2007-02-12 14:30 • by Zonkers (unregistered)
...new language constructs, and, in Oracle's case, the introduction of VARCHAR3 and subsequent deprecation of VARCHAR2.

that's a joke right?

Re: Practice Makes Perfect

2007-02-12 14:31 • by markg (unregistered)
Oracle's case, the introduction of VARCHAR3 and subsequent deprecation of VARCHAR2


WTF?

Re: Practice Makes Perfect

2007-02-12 14:38 • by Anonymous (unregistered)
Prefer the code WTFs myself; Too many process WTFs make reading seem like work.

Re: Practice Makes Perfect

2007-02-12 14:48 • by use the backups (unregistered)
119560 in reply to 119524
The rogue upgrade should have been treated like any other system disaster. The systems should be have been restored to their backups.

Why would anyone go-live with beta quality code if they had the ability to restore to backup?

Makes no sense to me.

Re: Practice Makes Perfect

2007-02-12 14:48 • by Jethris (unregistered)
Yeah for managers who want to help!
Boo for managers who want to help.


My Captcha: PHB!

Re: Practice Makes Perfect

2007-02-12 14:48 • by ammoQ
119562 in reply to 119523
dbomp:
You're just trying to freak us out about Oracle and VARCHAR3, right? RIGHT?

Alex is only joking. That's because he doesn't know about that Unicode issue.

Re: Practice Makes Perfect

2007-02-12 14:51 • by Boris (unregistered)
119564 in reply to 119522
SomeCoder:
I would be curious as to know what kind of queries failed to function the same way under SQL Server 2005 opposed to SQL Server 2000.

I recently upgraded one of our products to use SQL Server 2005 from 2000. The upgrade was simply a matter of setting up rights on the new server, and then importing the old database onto the new server. That's it. I didn't have to change any queries or any code. Just had to point the app at the new server.

Granted, this app isn't doing anything too complicated but I'm still surprised to see stuff just out and out failing on 2005 vs 2000.


If it involves moving Analysis Services from 2000 to 2005, then G-d help them. Even without it, SQL 2005 is by default much more standards compliant than 2000 was, so you get errors where there were none before. Then there is compatibility with deprecated features that were in 2000 like *= and =* joins

Re: Practice Makes Perfect

2007-02-12 14:57 • by Povins (unregistered)
Just testing this make-your-own captcha rumor.

Mine was supposed to be "gygax"

Re: Practice Makes Perfect

2007-02-12 14:57 • by Ben (unregistered)
119570 in reply to 119544
Derek Johnston:
A Nonny Mouse:
a manager who had the foggiest clue on how to go about upgrading db servers? you must be kidding


How hard can it be? Insert CD, Upgrade? Yes, click, click, click and yer done...


We had a Director of IT who was like this. His nickname became "Clickenstein". Favorite quote: "What's the big deal upgrading the domain controllers to 2003? Just put in the CD and click next...you're done"
Another favorite quote: "Server X is down...has Clickenstein been in today?"

Re: Practice Makes Perfect

2007-02-12 14:57 • by Povins (unregistered)
119571 in reply to 119568
Yeah, it worked.
I just typed "Sprite" instead of "gygax" and now "Marathon" instead of "doom".

Re: Practice Makes Perfect

2007-02-12 14:58 • by Povins (unregistered)
119572 in reply to 119568
Yeah, it worked.
I just typed "Sprite" instead of "gygax" and now "Marathon" instead of "doom"

Re: Practice Makes Perfect

2007-02-12 14:59 • by tawani
A lot of managers get like that after reading "Upgrading SQL Server for Dummies"

Re: Practice Makes Perfect

2007-02-12 15:00 • by not a phb (unregistered)
119574 in reply to 119568
Povins:
Just testing this make-your-own captcha rumor.

Mine was supposed to be "gygax"


Trying phony captcha - you should never see this

Re: Practice Makes Perfect

2007-02-12 15:00 • by batasrki
Actually, any query that previously assumed implicit conversion from one datatype to another (character conversions, specific case I've run into escapes me now) would fail, since Sql Server 2005 requires conversions to be explicit.

Re: Practice Makes Perfect

2007-02-12 15:01 • by not a phb (unregistered)
119576 in reply to 119574
not a phb:
Povins:
Just testing this make-your-own captcha rumor.

Mine was supposed to be "gygax"


Trying phony captcha - you should never see this

Hmmm captcha was digdug, typed in gibberish and it took it.

Alex?

Re: Practice Makes Perfect

2007-02-12 15:02 • by Duh (unregistered)
119577 in reply to 119550
Just checkin'

Re: Practice Makes Perfect

2007-02-12 15:03 • by Ian Hughes (unregistered)
I have some fairly large questions about this post.

I would be interested to see what kind of application would have so many queries that would break going from 2000 to 2005?

Seems like it would have to have a rather uncovential DAL to contain weeks worth of work to alter query logic between the platforms. Upgrading from 2k to 2005 is not like moving to another totally different federated base at all.

Re: Practice Makes Perfect

2007-02-12 15:03 • by gram (unregistered)
WTF is that i can't imagine a query that works in 2000 and will be broken in 2005, or this was really WTF query. Can anyone help with that? :) few our projects had 2000->2005 upgrade without any modification, only later some optimized code was added to work with new features.

Re: Practice Makes Perfect

2007-02-12 15:09 • by Michael Bolton (unregistered)
I've worked for some small companies where you never who or when something was upgraded until things start going flaky and you finally figure out someone mucked with something when they say "oh, I just applied the latest upgrade to xyz software. I didn't think it would hurt."

Re: Practice Makes Perfect

2007-02-12 15:12 • by EarTrumpet (unregistered)
119587 in reply to 119551
Wow, don't do that, that hurt my heart. Ok, I guess it was funny. No, it wasn't.

Re: Practice Makes Perfect

2007-02-12 15:19 • by travisowens
I agree with what some other people are saying here... the 2nd WTF is that anything that worked in SQL2000 would stop working in SQL2005. Considering it's an upgrade, so it's the same server name/ip address, same accounts, same permissions, I don't even know how to write something that wouldn't work on purpose!

Re: Practice Makes Perfect

2007-02-12 15:23 • by Hit (unregistered)
119598 in reply to 119594
travisowens:
I agree with what some other people are saying here... the 2nd WTF is that anything that worked in SQL2000 would stop working in SQL2005. Considering it's an upgrade, so it's the same server name/ip address, same accounts, same permissions, I don't even know how to write something that wouldn't work on purpose!


Wanna bet? I don't know exactly about 2000->2005 issues, but when going from MSSQ7 to 2000, we had stored procedures that would flat out blow up on conversion. You see, the author of said procedures got the order wrong on certain arguments of the RAISEERROR() call. MSSQL7 would simply allow this, but 2000 would not, and the stored procedure would not be brought over.

So yeah, I can easily see issues with upgrading. The same goes true for anything: servers, MS Office, and especially OSes. You have to test, test, test. Of course, if you have a PHB around who just upgrades willy nilly like in today's article, then you're screwed. But at least they tried.

Re: Practice Makes Perfect

2007-02-12 15:24 • by bobby (unregistered)
So I take it that this cowboy was subsequently publicly flogged before he was shot?

Re: Practice Makes Perfect

2007-02-12 15:28 • by SomeCoder (unregistered)
119606 in reply to 119543
Alex Ibrahim:
My guess is that there are several factors. The most probable being that the application was developed for an even earlier version of SQL Server. I am not intimately familiar with MS SQL Server (read: only test and student deployments) but it is easy to imagine an application developed for v6.0 which may have been supported by deprecated functions in SQL 2000, but those functions are gone in 2005.

Also, you may also be failing to consider the impact of moving from 32 to 64 bit. There are all sorts of data problems that can occur in any database undergoing such a change. Again an application coded for SQL 2000 32 bit shouldn't have many problems, but if the application is older... well.

Finally, the fact that it is MS SQL Server may itself be an obfuscation by this sites author to "protect the innocent." They could have been moving from MySQL to Oracle on Red Hat for all we know.



Yeah, hadn't thought of that specifically. In general, a straight 2000 to 2005 port should be relatively painless (as long as you have a beefy enough machine to withstand the firepower of the bloated SQL Management Studio.. ugh).

Re: Practice Makes Perfect

2007-02-12 15:28 • by Anon (unregistered)
119607 in reply to 119594
I always thought of thedailywtf.com as an educational site. Not so much in it shows what to do, but what NOT to do and WHY not to do it. The queries would not have broken. Something else would have broken causing the queries to stop working. So if this article is to be of any value, can we at least be told WHAT broke after the upgrade?

If not, then where is the WTF? That the manager was stupid? Then I've already seen this article before. Like a million times already.

Re: Practice Makes Perfect

2007-02-12 15:28 • by Clickenstein (unregistered)
119608 in reply to 119587
I like Tator Tots
Captcha: I do, really.

Re: Practice Makes Perfect

2007-02-12 15:31 • by Digitalbath
119609 in reply to 119594
travisowens:
I agree with what some other people are saying here... the 2nd WTF is that anything that worked in SQL2000 would stop working in SQL2005. Considering it's an upgrade, so it's the same server name/ip address, same accounts, same permissions, I don't even know how to write something that wouldn't work on purpose!


DECLARE @ver nvarchar(128)
SET @ver = CAST(serverproperty('ProductVersion') AS nvarchar)
SET @ver = SUBSTRING(@ver, 1, CHARINDEX('.', @ver) - 1)
IF ( @ver = '8' )
--SQL Server 2000
--Do normal stuff here
ELSE IF ( @ver = '9' )
--SQL Server 2005
--Break stuff on purpose here

Edit:
I didn't test that code before I posted. I think maybe the SQL Server 2000 should be '7' and the SQL Server 2005 should be '8' instead of the '8' and '9'.

Re: Practice Makes Perfect

2007-02-12 15:45 • by Mattg (unregistered)
119617 in reply to 119540
Hmm.... 25 paid vacation days per year is pretty standard in Sweden. So it's perfectly okay for an employee to disappear for five weeks. Four is more usual, though, the last week usually goes around Christmas.

Of course, it takes some careful planning to keep things running in July-August, but the good news is, most other people in other businesses are on vacation too.

Re: Practice Makes Perfect

2007-02-12 15:57 • by mattnaik (unregistered)
119625 in reply to 119609
Digitalbath:
travisowens:
I agree with what some other people are saying here... the 2nd WTF is that anything that worked in SQL2000 would stop working in SQL2005. Considering it's an upgrade, so it's the same server name/ip address, same accounts, same permissions, I don't even know how to write something that wouldn't work on purpose!


DECLARE @ver nvarchar(128)
SET @ver = CAST(serverproperty('ProductVersion') AS nvarchar)
SET @ver = SUBSTRING(@ver, 1, CHARINDEX('.', @ver) - 1)
IF ( @ver = '8' )
--SQL Server 2000
--Do normal stuff here
ELSE IF ( @ver = '9' )
--SQL Server 2005
--Break stuff on purpose here

Edit:
I didn't test that code before I posted. I think maybe the SQL Server 2000 should be '7' and the SQL Server 2005 should be '8' instead of the '8' and '9'.


i laughed pretty freaking hard after reading this. i had people coming over to my cube and ask me whats so funny
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment