Comparing tables includes view
TheBatA
Posts: 18
Hello,
I'm using toolkit to compare structure of 2 tables in 2 databases.
I've included only 1 table in comparison and created package using packager, but when I run this package on another database, I get SQL error:
This ArticleSearch exists as a View in database, but I haven't included it in comparison.
Why this happens?
I'm using toolkit to compare structure of 2 tables in 2 databases.
I've included only 1 table in comparison and created package using packager, but when I run this package on another database, I get SQL error:
Cannot find the object "ArticleSearch" because it does not exist or you do not have permissions.and
exec sp_refreshview N'[dbo].[ArticleSearch]'
This ArticleSearch exists as a View in database, but I haven't included it in comparison.
Why this happens?
Comments
You can disable this behaviour by using your own Options instead of Options.Default, and not including Options.IncludeDependancies in these options.
Redgate Software