我正在尝试将 SQL 数据库从一台服务器复制到另一台服务器。
请告诉我如何使用 Transfer() 方法而不失去目标数据库中的约束。
我尝试了不同的参数,包括
CopySchema = true; // and
CopyAllSchemas = true; //and even
CopyAllObjects = true;
但这个该死的东西仍然失去了所有的限制。
请帮助我!
最佳答案
好的...
transfer.Options.DriAll = true;
有帮助。但现在它把所有触发器都抛在了后面
关于c# - 使用约束的 Microsoft.SqlServer.Management.Smo.Transfer(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3065025/