bug - Refactor mistakenly identifying error in ranking func
fabianc2k
Posts: 8
SELECT 1, ROW_NUMBER() OVER ( ORDER BY [Survey Element Order].[Order] ASC ), ROW_NUMBER() OVER ( ORDER BY [Survey Element Order].[Order] ASC ), [Question].[Question ID], [Question].[Question Category ID] FROM dbo.[Question] INNER JOIN dbo.[Element] ON [Question].[Question ID] = [Element].[Question ID] INNER JOIN dbo.[Survey Element Order] ON [Element].[Element ID] = [Survey Element Order].[Element ID] WHERE ( [Survey Element Order].[Survey ID] = 30 ) AND ( [Question].[Question Type] = N'Custom' ) AND [Question].Demographic = 'false' ORDER BY [Survey Element Order].[Order]
The ROW_NUMBER() functions are both identified with a red squiggly line, and the message:
This object was not qualified because Refactor was unable to find ROW_NUMBER in the database
I am having a number of problems with ranking functions and resharper... I will post another after this.
Comments
I am uncertain as to why SQL Refactor could not qualify your ROW_NUMBER() functions.
However SQL Refactor will inform if any objects could not be qualified in the manner you described, in displaying an error dialog box and underlining in red the object name in the query editor.
Eddie Davis
Red Gate Software Ltd
Technical Support
E-Mail: Support@red-gate.com
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
2. Smart Rename ColumnTwo
3. Open the _BadView views