How to transfer ASP.NET MVC Database from LocalDb to SQL Server?

前端 未结 9 1322
小鲜肉
小鲜肉 2020-12-12 17:20

I created a new ASP.NET MVC 5 project in Visual Studio 2013 (Express for Web) and by default, the project uses LocalDb as its database, but how do you transfer or mi

9条回答
  •  时光说笑
    2020-12-12 17:27

    It sounds like you may want to move the data from your local database to sql server. If so, the easiest way to do this would be to back up your local database and then restore it on the server.

    To back up: https://msdn.microsoft.com/en-us/library/ms187510.aspx#SSMSProcedure

    To restore: https://msdn.microsoft.com/en-us/library/ms177429.aspx

    EDIT:

    If you need to install an instance of SQL Server: https://msdn.microsoft.com/en-us/library/ms143219.aspx

提交回复
热议问题