Red Gate forums :: View topic - SQL Prompt doesn't format OFFSET
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

SQL Prompt doesn't format OFFSET

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



Joined: 07 Nov 2013
Posts: 1
Location: United Kingdom

PostPosted: Thu Nov 07, 2013 9:15 pm    Post subject: SQL Prompt doesn't format OFFSET Reply with quote

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
Back to top
View user's profile Send private message
Anu Deshpande



Joined: 20 Apr 2009
Posts: 663
Location: Cambridge

PostPosted: Fri Nov 08, 2013 11:56 am    Post subject: Reply with quote

Many thanks for your post.

Can you email us the SQL Prompt style you are using?

You can export your style as specified here

Please email this to support@red-gate.com with this forum link in it's subject.
_________________
Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
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