Red Gate forums :: View topic - Multiple OUTPUT statements not supported by SQL Prompt 6.1
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 6
SQL Prompt 6 forum

Multiple OUTPUT statements not supported by SQL Prompt 6.1

Search in SQL Prompt 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
chrisw13



Joined: 01 Jul 2013
Posts: 3

PostPosted: Tue Oct 29, 2013 6:49 pm    Post subject: Multiple OUTPUT statements not supported by SQL Prompt 6.1 Reply with quote

SQL 2008 SP3+ and above (and probably below) supports multiple OUTPUT statements, as long as the first one is OUTPUT INTO and the second is OUTPUT...

These statements are nice to allow OUTPUT INTO a table variable/temp table for further operations, and to OUTPUT to return a result set to the user (SSMS or data layer).

The following TSQL is valid and executes, but SQL Prompt 6.1.0.72 will not format throws the message "SQL Prompt was unable to complete this operation. Problem areas have been highlighted."


SELECT *
INTO #Tbl
FROM ( VALUES ( 0) ) AS tbl (fld)

--Deletes from #Tbl
--Returns #Tbl as a ResultSet
--Inserts back it into #Tbl
DELETE FROM #Tbl
OUTPUT DELETED.*
INTO #Tbl
OUTPUT DELETED.*
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 209

PostPosted: Wed Oct 30, 2013 8:54 pm    Post subject: Reply with quote

Thank you for reporting this issue to us.
I was able to reproduce the behavior and have logged this issue in our bug tracking system under the internal reference number of SP-4910.
Unfortunately I am unable to provide a timeline for when this may be fixed.
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 192
Location: Red Gate Software

PostPosted: Thu Nov 07, 2013 10:27 am    Post subject: Reply with quote

The second output clause should now be supported in the latest release (6.1.0.8Cool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group