我需要复制一份 SQL Server 数据库。该数据库有大约 40 个链接到其他数据库的视图,我也需要来自这些视图的示例数据。此外,视图已加密,因此当我尝试从其中一个视图生成脚本时,这是错误:
Property TextHeader is not available for View '[dbo].[TABLE1]'. This property may not
exist for this object, or may not be retrievable due to insufficient access rights. The
text is encrypted. (Microsoft.SqlServer.Smo)
Run Code Online (Sandbox Code Playgroud)
从视图中获取包含数据的数据库副本的最佳方法是什么?我正在考虑创建额外的表并填充样本数据,但这似乎很冗长,那么有更好的方法吗?
sql-server ×1