SQL Prompt code completion completely broken for any query after an UPDATE query with USE HINT syntax
SQL Prompt code completion is broken if you use the OPTION ( USE HINT ( ) ) syntax with an update query. To make matters worse, if you are writing a stored procedure, the code completion tools remain broken for every query following the UPDATE statement as well.
This is on SQL Prompt v9.4.15.8960 with SQL Server Management Studio v17.9.1.
Here is a repro:
CREATE OR ALTER PROCEDURE dbo.TestThis
AS
BEGIN
SET NOCOUNT ON;
DECLARE @var int;
-- try to do any code completion after this statement
-- only snippets will work
UPDATE TestTable
SET WatchThisBreak = 1
OPTION( USE HINT( 'FORCEDEFAULTCARDINALITY_ESTIMATION' ));
END;
-
AdminAdrian B (n/a, Redgate) commented
Thanks for your feedback. This sounds more like a bug, although we’re not currently aware of it.
Please could you raise a support ticket with screenshots and recreation steps at https://redgatesupport.zendesk.com ?
Thanks,
The Prompt Team