developing SQL 2005 application using SQL 2008 ser

2019-07-18 20:42发布

问题:

I am developing an application for one of my customer who has SQL 2005 but I have SQL 2008 on my system. Can I develop my application using SQL 2008 and then ported it simply to SQL 2005? I will use EF and C# for my application and the SQL DB has database (no code).

回答1:

Just install SQL Server 2005 express and use that

At some point, developing an backward compatible app will come back to bite you because there are differences in data types, deprecated features, discontinued features, and behaviour changes. The list is too long to try and remember for development



回答2:

Short answer: yes.

But there are some differences between SQL 2005 and SQL 2008 databases. You should read up on those to make sure your database is compatible with SQL Server 2005. For example some datatypes only exists in the one version and not the other and so on.