Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, i am changing computers and i want to move my .net projects to this computer, i can just copy the files from the project folder but the problem i am facing is how to save and transport the databases to this new computer. in short, i want to be able to save or export my databases for all my current projects so that i can sort of re-deploy them on the the new computer. I am using ms sql server 2005, the one that comes with microsoft visual studio 2008
Posted
Updated 26-Dec-10 2:47am
v3
Comments
Manfred Rudolf Bihy 26-Dec-10 8:36am    
What DBMS are you talking about? SQL Server, MS Access, DB4Objects etc. ? Please specify and while you're at it also note the version for each DBMS you are using. Cheers!
#realJSOP 26-Dec-10 8:37am    
What kind of database? Access? SQL? MySql? SqlExpress? Oracle? Something else?
[no name] 26-Dec-10 8:47am    
i am using ms sql server 2005, dbms that comes with vs 2008

There are a few things you can do:

0) Convert your database to be completely xml-based. You can then free yourself from SQL server, and your application becomes the control for the data. This is probably not what you - personally - want to do because it involves writing more code, which then has to be tested. Just know that the option is there.

1) Deploy SQL Server Express with your application. This is fraught with danger because you then have to rely on the user to install it correctly, and we all know that end users are just slightly above a fog bank in the intelligence scale.

2) Host all the data yourself on your own server, and provide a web service for retrieving/updating the data that your application(s) can connect to. This also has a downside because now you have to make sure the server is ALWAYS available, make backups, provide redundancy, and all that other data provider mess.

Those are your options as I see them.

 
Share this answer
 
v2
I assume your new PC has SQL Server installed. So, what you can do is as follows:

1. Take backup of SQL Server database(s) from the source PC.

2. Restore the backups into the destination PC's SQL Server database.

3. Update the ConnectionString property value of your .NET projects so that, the ConnectionString points to the new Database server, along with correct database names and credentials.

See http://www.sqlteam.com/article/backup-and-restore-in-sql-server-full-backups[^] to learn how to do Backup and Restore of SQL Server databases.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900