SQL Complete and CTE?

Discussion of open issues, suggestions and bugs regarding database management and development tools for SQL Server
Post Reply
Cody
Posts: 2
Joined: Mon 11 Apr 2011 01:57

SQL Complete and CTE?

Post by Cody » Mon 11 Apr 2011 02:12

I'm not sure if it's intentional or an oversight, but I've just started using SQL Complete Express Edition 2.50.86 and the auto-completion doesn't include CTE tables defined in the query you're writing.

Code: Select all

; WITH Some_CTE
     AS (SELECT 1 AS Something)
SELECT *
FROM   Some_CTE
As you type the FROM So... line, it doesn't include the Some_CTE table as an option in auto-complete.

You can also do self-referential CTE's like:

Code: Select all

; WITH Some_CTE
     AS (SELECT 1 AS Something
         UNION ALL
         SELECT *
         FROM   Some_CTE)
SELECT *
FROM   Some_CTE
Where it should auto-complete the FROM Some_CTE after the first UNION, and it doesn't.

.jp
Devart Team
Posts: 345
Joined: Wed 09 Sep 2009 06:55
Location: devart

Post by .jp » Mon 11 Apr 2011 08:57

Thanks for the post.
Actually, CTE is a feature of dbForge SQL Complete Standard Edition and it isn't available in Express Edition.

Cody
Posts: 2
Joined: Mon 11 Apr 2011 01:57

Post by Cody » Thu 05 May 2011 14:04

Thanks for your reply, I'll give the full edition a go instead then :-)

Post Reply