How is SQL Prompt helping your team? Share your experience.
SQL Prompt doesn't format OFFSET

Hi,
When formatting this (AdventureWorks2012) code:
SELECT ROW_NUMBER() OVER ( ORDER BY Name ) AS 'RowNumber', name, listprice
FROM Production.Product
ORDER BY Name
OFFSET 20 ROWS
FETCH NEXT 10 ROWS only
It formats it too
SELECT ROW_NUMBER() OVER ( ORDER BY Name ) AS 'RowNumber', name, listprice
FROM Production.Product
ORDER BY NameOFFSET 20 ROWS
FETCH NEXT 10 ROWS only
which is invalid (NameOFFSET should maintain the space)
This is on SQL Prompt 6.1.0.88.
Cheers
Nick
When formatting this (AdventureWorks2012) code:
SELECT ROW_NUMBER() OVER ( ORDER BY Name ) AS 'RowNumber', name, listprice
FROM Production.Product
ORDER BY Name
OFFSET 20 ROWS
FETCH NEXT 10 ROWS only
It formats it too
SELECT ROW_NUMBER() OVER ( ORDER BY Name ) AS 'RowNumber', name, listprice
FROM Production.Product
ORDER BY NameOFFSET 20 ROWS
FETCH NEXT 10 ROWS only
which is invalid (NameOFFSET should maintain the space)
This is on SQL Prompt 6.1.0.88.
Cheers
Nick
Comments
Can you email us the SQL Prompt style you are using?
You can export your style as specified here
Please email this to [email protected] with this forum link in it's subject.
Product Support
Redgate Software Ltd.
E-mail: [email protected]