DATETRUNC
ccparkhill
Posts: 24 Bronze 2
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:
Best Answer
-
Jon_Kirkwood Posts: 441 Gold 1
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:
10.15.1.12422 - Released on 19 November 2024
Features- Updates the licensing client
- Allows tool to be used across user profiles on the same machine
- Prioritises licenses correctly
- Fixed an issue where SQL Prompt does not handle IGNORE NULLS on Azure SQL database.
- Fixed an issue where SQL prompt does not handle DATETRUNC on Azure SQL DB.
Jon Kirkwood | Technical Support Engineer | Redgate Software
Answers
I get this, which errors when executed:
I have the latest version, I'm using it against Azure SQL, here are my settings: