r/SQLServer • u/EastCoastCoders_Bill • Oct 09 '25
Discussion Upgrading SQL Server 2000 to SQL Server 2017 — any big gotchas?
I’m upgrading an old system running SQL Server 2000 on Windows Server 2000 to SQL Server 2017 on Windows Server 2019.
Looking for anyone who’s gone through similar upgrades — especially around stored procedures, DTS to SSIS conversions, and performance tuning. Any lessons learned or pitfalls to watch out for?
18
Upvotes
3
u/RussColburn Oct 09 '25
I would not do an upgrade - I would restore backups. You cannot (if I remember correctly) restore directly from 2000 to 2017, but you can do 2000 to 2008 r2, then 2008 r2 to 2017.
You will still want to do some testing, but this will create many fewer issues than trying to upgrade.
44
u/OhKitty65536 Oct 09 '25
I'll pray for you
27
u/shufflepoint Oct 09 '25
Personally, I'd not "upgrade". I would stand up a new server. I would install SQL Server 2022. Then I would migrate your schema and data from the old server to the new one.
24
u/SingingTrainLover Oct 09 '25
2000 to 2005 was a big change, as key language elements were specifically removed, not just deprecated. Since 2005 most of the changes were additions to the language. You definitely want to test all your application code against a current release before going live with the upgrade, and you'll have to do it in steps (2000-2008, then 2008-2017), so be prepared for that.
11
u/stedun 2 Oct 09 '25
SQL Server 2017 goes end-of-life in October 2027 so you’ll want to hurry.
On second thought - you may not be concerned about patching or support.
Enjoy the ‘new’ Dynamic Management Views.
6
u/oldMuso Oct 09 '25
The change from DTS to SSIS is very significant.
It's been a while, but I recall that DTS was easier to pickup and figure out (at least back then).
Developing SSIS solutions that aren't do-able in the Import/Export wizard are not as easy for a non-developer.
This is over-simplifying, but I wanted to chime in because I don't see anyone speaking to the differences in DTS and SSIS.
1
u/EastCoastCoders_Bill Oct 10 '25
The moving to 2019 has been a slow process - it is a production server - all our customers would be affected - the testing and incremental steps have been done very carefully - going live is planned for this year
5
u/Disastrous_Fill_5566 Oct 09 '25
Casting my mind back 20 years, you can use ORDER BY in a view in SQL 2000 and none of the later versions.
You definitely need to stand up a test server and test your entire workload against, in depth.
4
u/chandleya Oct 09 '25
I’d estimate this is at least a year long project. This is big time not an upgrade, this is a replace.
You’re probably going to want to take your app and your SQL instance through the various iterations of time. I’d be reluctant to skip much.
If your app is from the same era, you may be doing the impossible. If your vendor has made 20 years of updates that your org hasn’t installed, oyyy vey the amount of things that could go wrong are infinite.
1
u/Odd_Repair9120 Oct 10 '25
Use the Upgrade Advisor tool that will tell you the points that are going to fail and the others that are warnings
1
u/CricSkipper Oct 10 '25 edited Oct 10 '25
Please Refer To This Step-By-Step Screenshotted, (Illustrated), Guide, For The Purpose Of Upgrading To SQL Server 2017, At The Following URL Link:
https://www.dropbox.com/scl/fi/fzogvksaql7le0rz5kaaw/Upgrade_To_SQL_2017_Server.pdf?rlkey=td0lqa38jnfqejdnp9xhvy2zr&st=fcineq9m&dl=0
3
u/SirGreybush 1 Oct 09 '25
Say goodbye to 32 bit anything, especially ODBC connections.
Or older SSRS / SSIS objects. I had to redo them with Visual Studio and SSDT 2012 & 64 bit.
Reading from Access or Excel suddenly became tedious. They are C# work arounds.
The pure SQL stuff worked as-is, we were lucky. Microsoft has done a decent job with TSQL backwards compatibility. Just the really funky stuff to redo.
3
u/Disastrous_Fill_5566 Oct 09 '25
I think you used to be able have a blank password for the sa account.
3
u/Flimsy-Donut8718 Oct 10 '25
holy fuck this could be a shit show of epic legendary proportions
4
u/First-Butterscotch-3 Oct 09 '25
A lot of language changes - many features are deprecated
Lots of new features
The worse imo will be big changes in query optimizer I've seen queries which run fine at 110 compatability go haywire past 130
If you belive in any higher being....pray hard, if you don't now is a good time to start
2
u/NotMyUsualLogin Oct 09 '25
IIRC you cannot go direct to 2017. You’ll first need to upgrade your 2000 instance to 2008R2. From there you should be able to go to 2017.
2
u/Snoo45624 Oct 09 '25
You need Win 2008R2 with SQL 2008 to make the first leap into log shipping. If you have order bys in the views yes dead: you have to rewrite and enable a trace flag which I don't remember at the moment. You can import DTS keeping them intact but ReadOnly.
If you are still alive with visual Studio 2019 you import them and rewrite them as SSIS (2017 version) and test them. (if there are many.... you have work for months)
When did you update to 2014. (test everything first) With SSIS running on a SQL2017 server.
To make the third leap on SQL2017 that you have already installed for SSIS, first launch the program that highlights the syntax changes and compatibility. Rewrite the joins by eliminating =* and *= for example.
Have fun and happy LogShipping.
Obviously if you only have a multiplication table with the shopping list it's simpler.
2
u/az987654 Oct 09 '25
There are a ton of gotchas, this is a huge undertaking
2
u/BrightonDBA Oct 09 '25
I finally managed to kill off our last SQL 2000 last year. Good luck OP
2
u/thatOMoment Oct 09 '25
There are some horrible patterns the old optimizer is better at optimizing then the new ones.
We had a report with an EAV style table join 20 times to some attribute table and then to a common codes table to get the description.
On 2000 (or 2005 i forget) estimate (with stats up to date for both) was 40 rows.
It always returned 1 row.
With 2017 it estimated 10217, and blew it up
Had to rewrite around 30 stored procedures to use MAX(CASE WHEN) and optimize the hell out of the query to get that back in line over the course of 2 days.
Hopefully your case isn't that bad.
1
u/j00rn Oct 09 '25
I believe SQL users passwords became case sensitive from 2000->2005.
1
u/fatherjack9999 Oct 09 '25
Why that SQL and OS version combination as target?
1
u/[deleted] Oct 10 '25
Not sure if it’s been mentioned but run Microsoft’s Data Migration Assistant(DMA) tool. It will give you most of the gotchas as far as stored procedures and db objects.
1
u/MinnSnowMan Oct 10 '25
Backup on the OLD and restore on the NEW
1
u/No_Resolution_9252 Oct 10 '25
This makes me want a valium and a beer just reading this. Good luck.
1
u/Golgo13 Oct 10 '25
Give the DTS packages my best regards.
1
u/DelayMurky3840 Oct 10 '25 edited Oct 10 '25
That's a big jump. It's not the SQL server stuff in and of itself, your tables will be fine. However, if you got DTS packages and so on, you might have a lot of technology that generation, like VBScript, ActiveX, etc....that binds you. Since you mentioned DTS, how's yours look like in terms of dependencies? You might also have to contend with bitness issue here and there, as I'm sure your old world was in 32-bit. Even more interesting if it was Itanium 64-bit, to, no doubt going to x64.
1
u/Flimsy-Donut8718 Oct 10 '25
your stored procs will break
1
u/ConsequenceShot611 Oct 10 '25
7
1
u/ConsequenceShot611 Oct 10 '25
8
1
u/jwk6 Oct 10 '25
Nope. Seemless. 😏
1
u/Fisher-Bloke-47 Oct 11 '25
Firstly, I'm not sure there is any direct upgrade path from 2000 to 2017. You'll probably need to upgrade to 2008 first? Then jump to 2017.
Secondly, i suggest you run either the SQL Server Upgrade Advisor or the more recent Data Migration Assistant tool. These will inspect your schema design and identify both depricated or obsolete sql language. Data types, join syntax, etc.
Good luck!