Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
填充 dbo.migrate_remote_fks_list 表。
sa_migrate_create_remote_fks_list( server_name )
server_name 使用此 VARCHAR(128) 参数指定用于连接到远程数据库的远程服务器的名称。远程服务器是用 CREATE SERVER 语句创建的。此参数需要值。
此过程使用可从远程数据库中迁移的外键列表来填充 dbo.migrate_remote_fks_list 表。可以从此表中删除不想迁移的外键的行。
另一种选择是,使用 sa_migrate 系统过程一步迁移所有表。
此系统过程与其它几个迁移系统过程一起使用。sa_migrate_create_fks 系统过程注释部分的注意项中包含迁移过程的列表,以及执行它们时必须遵循的顺序。
无
以下语句创建一个外键列表,这些外键为 dbo.migrate_remote_table_list 表中列出的表的外键。
CALL sa_migrate_create_remote_fks_list( 'RemoteSA' );