Server server = new Server(textServer.Text); Database database = server.Databases[textDatabase.Text]; Transfer transfer = new Transfer(database); transfer.CopyAllObjects = true; transfer.DropDestinationObjectsFirst = true; transfer.CopySchema = true; transfer.CopyData = true; transfer.DestinationServer = cServer.Text; Database newDatbase = new Database(server, textBox1.Text); newDatbase.Create(); transfer.DestinationDatabase = textBox1.Text; transfer.Options.IncludeIfNotExists = true; transfer.CreateTargetDatabase = true; transfer.TransferData();//Gives error at this line.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)