How do you easily deploy an MS SQL Server database to a third-party hosting t开发者_开发技巧he easiest? Nothing comes to mind except generating lots of SQL scripts and running them on the database, or calling LINQ's DataContext.CreateDatabase .
- You can deloy the backup of database to the server and restore it
- You can deloy the datafiles and transaction log of database to the server and attach it
- And, of course, you can generate a lots of sql-queries to generate the database structure and fill it with data.
精彩评论