DATETRUNC
ccparkhill
Posts: 21 Bronze 1
SQL prompt doesn't seem to handle DATETRUNC when formatting, instead of this:
I get this, which errors when executed:
SELECT DATETRUNC (YEAR, [d].[FullDate]) AS [YearStartDate] FROM [Dim].[Date] AS [d];
I get this, which errors when executed:
SELECT [DATETRUNC] ([YEAR], [d].[FullDate]) AS [YearStartDate] FROM [Dim].[Date] AS [d];
Tagged:
Answers
I get this, which errors when executed:
I have the latest version, I'm using it against Azure SQL, here are my settings:
Thank you for your patience whilst this was escalated with our developers.
A fix has been included in release V10.15.1 of SQL Prompt
Download link for this version can be found here:
https://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_10.15.1.12422.exe
Release notes:
https://documentation.red-gate.com/sp/release-notes-and-other-versions/sql-prompt-10-15-release-notes
Features
- Updates the licensing client
Fixes