我正在寻找从 SQL Server 2000 升级到 2008 的好处。
我想知道:
- 我们可以在 2008 中利用哪些现在不能利用的数据库功能?
- 我们可以期待使用哪些新的 TSQL 功能?
- 我们可以期望看到哪些性能优势?
- 还有什么能让管理层这么做呢?
反之亦然:
- 我们会遇到什么问题?
- 人们在迁移过程中还发现了哪些其他问题?
- 为什么要修复(技术上)没有损坏的东西?
我们在一家 Java 商店工作,因此任何 .NET / CLR 的东西都不会撼动我们的世界。我们还使用 Eclipse 作为我们的主要开发,因此与 Visual Studio 的任何集成都不会是一个优点。不过,我们确实使用 SQL Server Management Studio。
一些背景:
我们的主数据库机器是 32 位 Dell Intel Xeon MP CPU 2.0GHz、40MB RAM(带物理地址扩展),运行 Windows Server 2003 Enterprise Edition。我们将不会改变我们的硬件。我们的数据库总共不到 TB,有些数据库有 200 多个表。但它们很忙,在繁忙时间我们看到 CPU 利用率为 60-80%。
除了 SQL Server 2000 生命周期即将结束这一事实之外,我们为什么还要升级呢?
感谢所有贡献!
I'm looking for the benefits of upgrading from SQL Server 2000 to 2008.
I was wondering:
- What database features can we leverage with 2008 that we can't now?
- What new TSQL features can we look forward to using?
- What performance benefits can we expect to see?
- What else will make management go for it?
And the converse:
- What problems can we expect to encounter?
- What other problems have people found when migrating?
- Why fix something that isn't (technically) broken?
We work in a Java shop, so any .NET / CLR stuff won't rock our world. We also use Eclipse as our main development so any integration with Visual Studio won't be a plus. We do use SQL Server Management Studio however.
Some background:
Our main database machine is a 32bit Dell Intel Xeon MP CPU 2.0GHz, 40MB of RAM with Physical Address Extension running Windows Server 2003 Enterprise Edition. We will not be changing our hardware. Our databases in total are under a TB with some having more than 200 tables. But they are busy and during busy times we see 60-80% CPU utilisation.
Apart form the fact that SQL Server 2000 is coming close to end of life, why should we upgrade?
Any and all contributions are appreciated!
发布评论
评论(3)
除了 MatthewPK 提到的所有功能之外,我还非常喜欢:
通用表表达式 (CTE)(我发现它非常有帮助) - 请参阅 使用通用表表达式,SQL Server CTE 基础知识 或 SQL Server 2005 公用表表达式了解更多详细信息
排名函数,例如
ROW_NUMBER
、RANK
、DENSE_RANK
和 < code>NTILE - 请参阅排名函数(在 MSDN 上) 或 SQL Server 2005 中的新排名函数了解更多详细信息OUTPUT 子句 在 SQL 语句中输出信息有关您使用
DELETE
语句删除的行或使用MERGE
语句更新的行 - 请参阅 SQL Server 联机丛书了解更多详细信息。我正在维护一个旧的 SQL Server 2000 解决方案,天哪,我错过了多少次这些功能!
Besides all the features MatthewPK mentions, I also really like:
Common Table Expressions (CTE) (which I find extremely helpful) - see Using Common Table Expressions, SQL Server CTE Basics or SQL Server 2005 Common Table Expressions for more details
Ranking functions like
ROW_NUMBER
,RANK
,DENSE_RANK
andNTILE
- see Ranking Functions (on MSDN) or New Ranking Functions in SQL Server 2005 for more detailsOUTPUT clause in SQL statements to output information about e.g. rows you've deleted with the
DELETE
statement, or updated with yourMERGE
statement - see the SQL Server Books Online for more details.I'm taking care of an old SQL Server 2000 solution, and boy, how many times have I missed those features!
我确信进行迁移有很多原因。
我最喜欢的是:
新的
DATE
数据类型(不再需要格式化字符串来比较带时间戳的日期)新的空间数据类型(几何、地理)
新的
MERGE
语句非常适合更新插入或任何其他“如果存在”类型逻辑FILESTREAM
都可以让您摆脱blob问题(在文件系统目录上强制执行数据库完整性!)恕我直言,从开发人员的角度来看,最重要的升级是TVP< /strong>
我个人遇到的唯一不足是我必须将我的 DTS 包重写为 SSIS 包(但我认为 SSIS 很棒......只是需要做更多的工作)
There are a number of reasons to make the migration, I'm sure.
My favorites are:
New
DATE
datatype (no more having to format strings to compare timestamped dates)New Spatial Data types (geometry, geography)
New
MERGE
statement is great for upserts or any other "if exists" type logicFILESTREAM
gets you out of the blob problems (enforced DB integrity on filesystem directories!)IMHO, from a developer's perspective, the most important upgrade is the TVP
The only shortfall I've personally encountered is that I had to rewrite my DTS packages to SSIS packages (but I think SSIS is great... just more work)
从纯粹实用的角度来看,对我来说最引人注目的优势是一些 2000 年不可用的强大 TSQL 命令,例如 PIVOT/UNPIVOT,以及 2008 Management Studio 中添加的智能语法扩展,这使得使用该工具变得更加方便。富有成效。
From a purely practical perspective, the most compelling advantages for me are several powerfull TSQL commands that are not available in 2000, e.g. PIVOT/UNPIVOT, and the addition of the intelligent syntax expansion to the 2008 Management Studio that made working with this tool substantially more productive.