Open alitas opened 1 year ago
thx for the report! That line has been commented out since before 2013 so it predates my time on SQL by a fair amount.
Can you provide a simple TSQL script that creates the duplicate key with different casing so I can add it to some tests? I happen to be working on updating this dependency discovery code right now.
We hit this when we had a few old stored procedures referring to the same dropped table with different casing for database name. I see commented out code at https://github.com/microsoft/sqlmanagementobjects/blob/main/src/Microsoft/SqlServer/Management/Smo/DependencyTree.cs#L198 that might have fixed this issue, not sure why it's been commented out though.