简体   繁体   中英

How to make SQL server 2000 compatible with SQL server 2008

I need to dump a software to a clients server. The problem is that my software is using SQL server 2008 and the client is using SQL Server 2000. So could anyone please suggest how I can make the clients SQL server 2000 compatible with my queries of SQL server 2008?

Thanks for the suggestion

But my concern is that software is already developed with SQL server 2008, then is there any way to use it with SQL server 2000?

  1. You should have developed your software against SQL 2000, or demanded your client upgrade to at least 2005. Did you ask the client which version you would deploy to before starting development? That is part of standard requirements gathering .
  2. SQL 2008 queries may or may not be compatible with SQL 2000 due to many new features in 2005 and 2008. There is no shortcut.
  3. At best, make sure to use SQL 2000 documentation from MSDN when writing queries. Use the lowest common denominator.
  4. If you are supporting a product that must deploy to multiple SQL Server versions, you may consider using an ORM that supports SQL 2000. Checkout the Nuget gallery of ORMs: http://staging.nuget.org/packages?q=Tags%3A%22ORM%22 - I believe something simple like Dapper supports 2000.

At minimum you should set your SQL 2008 compatibility level down to 2000 during development.

http://msdn.microsoft.com/en-us/library/bb510680.aspx

ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 80

I recommend you setup a virtual machine, install the older OS that your client uses as well as SQL Server 2000. Otherwise there are unforeseeable differences.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM