I have a product that prints SQL Server schema objects. When I migrated the product to SQL Server 2012 SMO the product kept getting Stack overflow when printing object dependencies.
The problem is that DiscoverDependencies method of scripter for table 'ActiveSubscriptions' in database ReportServer returns tree that is wrong such that the child and next sibling nodes are the same. See the screenshots that I have uploaded to my website. here is the link:
Here is the link to VB.NET projects that demonstrates the bug:
1. Edit lines 18 and 21 in the Form1.vb with your own server and database names
2. Run the program and it should stop with Stack Overflow
Can anyone please suggest a workaround this bug?