简体   繁体   English

SSIS 任务“传输 SQL Server 对象”不会将同义词复制到新数据库

[英]SSIS Task "Transfer SQL Server Objects" is NOT copying Synonyms to new DB

I am using SSIS Task "Transfer SQL Server Objects" to clone database structures on-demand onto our TEST server version SQL Server 2008 R2 SP3 (10.50.6220).我正在使用 SSIS 任务“传输 SQL Server 对象”按需将数据库结构克隆到我们的 TEST 服务器版本 SQL Server 2008 R2 SP3 (10.50.6220) 上。

However, it is NOT transferring/copying SYNONYM objects across to new DB.但是,它不会将 SYNONYM 对象传输/复制到新数据库。

Any help or suggestion on how to fix this or even workaround?有关如何解决此问题甚至解决方法的任何帮助或建议?

I think that the failure to copy them is by design.我认为无法复制它们是有意为之。 See here for the list of DB objects that that type of task can move (synonyms isn't on the list):有关该类型任务可以移动的 DB 对象列表,请参见此处(同义词不在列表中):

https://msdn.microsoft.com/en-us/library/ms142159(v=sql.110).aspx https://msdn.microsoft.com/en-us/library/ms142159(v=sql.110).aspx

For a workaround, I'd suggest just scripting the CREATE statements in a SQL task after the move of everything else completes.对于解决方法,我建议在其他所有内容的移动完成后,在 SQL 任务中编写 CREATE 语句的脚本。

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM