文档详情

Oracle向MS SQL Server移植中select top问题的研究.doc

发布:2018-03-14约8.48千字共13页下载文档
文本预览下载声明
Oracle向MS SQL Server移植中select top问题的研究   摘要:Oracle和MS SQL Server是目前最常用的两个数据库管理系统(DBMS)。由于实际工作的需要,将软件系统在二者之间移植是很常见的。在网络自动彩票生成系统的移植过程中,发现Oracle的select top非常适合网络环境的工作模式,而SQL Server的select top在网络环境中工作非常繁琐。从SQL Server的锁机制以及存储过程角度对select top问题做了深入的分析,并且给出了一种良好的解决方案。   关键词:Oracle;SQL Server;select top;锁;存储过程   中图分类号:TP312文献标识码:A文章编号:1009-3044(2011)27-6652-04   Research on Select Top Problem Transplanting from Oracle to MS SQL Server   LIAO De-li1, XU Jin-bao2   (1.School ofPower Engineering, Nanjing Institute of Technology, Nanjing 211167, China; 2.School of Computer Engineering, Nanjing Institute of Technology, Nanjing 211167, China)   Abstract: Oracle and MS SQL Server are the two most commonly used database management system (DBMS). As the actual work, the migration between the two software systems is very common. Automatic lottery system in the network generates the migration process, found that Oracles select top is ideal for network environments of the mode, and select top of SQL Server in the network environment is very complicated. By making an in-depth analysis on the select top problem, the lock mechanism and stored procedures of MS SQL Server, this essay gives a good solution.   Key words: Oracle; SQL Server; select top; lock; stored procedure   目前数据库技术得到了广泛应用,数据库管理系统(DBMS)在应用软件系统中具有核心地位。优秀的DBMS层出不穷,著名的有Oracle、DB/2、MySQL、Sybase SQL Server、MS SQL Sever、Unify、Informix、VFP、Access等,Oracle和MS SQL Server以其强大的功能、方便的应用是目前最流行的两种DBMS。Oracle功能强大、性能优良并且具有跨平台特性,但Oracle相对来说使用上少许复杂些,并且价格相对昂贵,一般用在大型项目上;MS SQL Server方便易用,功能也很强大,特别在数据仓库、数据挖掘上很有竞争力,但MS SQL Server只能用在Windows系列的操作系统上,MS SQL Server价格便宜,在中小型项目中得到了广泛的应用。在开发基于Web的彩票自动生成系统中,原先是以Oracle作为数据库,由于性价比的问题以及使用方便性等原因,迫切需要将该系统移植到Ms SQL Server中。   在移植的过程中,相当多的功能都能方便快捷完成,但在移植select top这个SQL语句时,发现在Oracle环境中能够很好地高效执行的语句,在 MS SQl Server中,却不能达到预想效果。查阅了大量相关资料,没有发现相关的解决方法。通过对Oracle和MS SQL Server的并发机制以及存储过程的深入分析,得出了很好的解决方法。   1 问题的提出及Oracle、SQL Server简介   1.1 问题的提出   随着经济的发展以及理财意识的提高,彩票事业得到了很大发展,随着因特网的普及,基于Web的彩票自动生成系统有了很大的应用空
显示全部
相似文档