Azure migration sample code
using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data.OleDb; using Microsoft.SqlServer.Server; using Microsoft.SqlServer.Management.Smo; using System.Data.Odbc; namespace AzureApplication { class Program { static void Main(string[] args) { //Microsoft.SqlServer.Server srv; //srv = new Microsoft.SqlServer.Server(); ////Reference the AdventureWorks2012 database //Database db; //db = srv.Databases["AdventureWorks2012"]; ////Create a new database that is to be destination database. //Database dbCopy; //dbCopy = new Database(srv, "AdventureWorks2012Copy"); //dbCopy.Create(); ////Define a Transfer object and set the required options and properties. //Transfe