Kopiuję tabele z bazy danych Destination_Test bazy danych Source_Test.Jak skopiować tabele na podstawie nazwy schematu w Microsoft.SqlServer.Management.Smo.Transfer
Korzystanie z Microsoft.SqlServer.Management.Smo.Transfer
.
egzemplarzy to wszystko stoły from Source_Test to Destination_Test
Ale chcę tabele mające schematu „TestSchema”.
Głównym problemem jest to, że kopiuje całą tabelę o numerze dbo schema
. Nawet ja ustawiam this.CopyAllTables = false;
i nadal go kopiuje. Jak ograniczyć. próbowałem następujące:
public class CopyTable : Transfer, ISchemaCopy
{
private void CopyTables()
{
this.CopyAllTables = false;
var server = new Server(new ServerConnection(connection));
var script = this.ScriptTransfer().Cast<string>();
}
}