Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 SQL 数据库从一台服务器复制到另一台服务器。
请告诉我如何在不丢失目标数据库约束的情况下使用 Transfer() 方法。
我尝试了不同的参数,包括
CopySchema = true; // and CopyAllSchemas = true; //and even CopyAllObjects = true;
而这该死的东西仍然失去了所有的约束。
请帮帮我!
行...
transfer.Options.DriAll = true;
帮助。但现在它把所有的触发因素都抛在脑后了
在选项中选择要复制的对象的一些标志
transfer.Options.Triggers = true; transfer.Options.Indexes = true; transfer.Options.Statistics = true;