Mobile app version of vmapp.org
Login or Join
Martha676

: Publishing an asp.net mvc3 website database and all to a website? Just wondering is this possible : I have some local databases which run fine. If I could move them all up to a server online

@Martha676

Posted in: #AspNet #AspNetMvc #Sql

Just wondering is this possible : I have some local databases which run fine. If I could move them all up to a server online it would be great (with their data and all that).

Currently, what I'm doing is creating the datbaases remotely and creating the tables to match the ones on my project along with the tables then uploading using webmatrix and setting the appropriate connection string to the databases on the server (not even sure if this will work, haven't been able to test it yet).

Just wondering, since I'd potentially save a lot of time and effort, could I just move the local database online as part of the publish process?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

There are many easier ways, to mention a few:


Backup the database (right click, all tasks, back up), then restore it on the live server. The restore will ask you for a DB name and allow you to change the default file location / name of the restored DB, so, you can restore the same backup as multiple databases
SQL Server Imort and Export wizard, explained blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/ has the option in its choices property grid to export data as well. You can export to SQL file from local, and run the SQL file on the server.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme