Well, I never said it's easy to move a SQL Server Express 2005 database to a 2000 environment. In fact, that's impossible....
However, it's easy to move a 2005 Express database to another 2005 installation. Simply copy the .MDF file and attach it to the new server.
aspnet_regsql.exe doesn't do anything with data or your database objects. All it does is create a bunch of objects required for ASP.NET like the aspnet_* tables, views and so on. It doesn't touch your database, or copy your data at all.
Take a look at this article to learn more about SQL Server 2005, how to attach a database and how to configure the database and your application so the two can work together.
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395
Re: moving a 2005 to 2000: it depends on a number of factors if you can do this at all. If you're using SQL Server specific features (like the new CTP syntax feature), you're pretty much out of luck. Otherwise, you can script your database using "SQL Server Management Studio" (not sure, but the SQL Server Management Studio Express Edition may support this as well) and then run this script on your SQL 2000 database.
You just need to be aware of the differences between 2000 and 2005. I think in general, it's easiest if you develop on the platform that you intend to use for production as well. Developing against 2005, while deploying on 2000 is likely to get you into problems, or at least into a lot of work.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.