try_cast
Hi support,
Please add TRY_CAST to you list of key words in SQL Prompt.
Best regards,
Henrik
Henrik Staun Poulsen
Vestas Data Center
Vestas Technology R&D
1
vote
Henrik Staun Poulsen
shared this idea
Hi Henrik,
Unfortunately the script syntax highlighting is not handled by SQL Prompt. It’s something that’s built into SSMS and so we don’t have control over which keywords get marked as pink.
-
Henrik Staun Poulsen commented
hi Aaron,
Yes that is very unfortunate, as it is possible to get Redgate to fix things, but Microsoft...
I'm tired already.Best regards,
Henrik -
Henrik Staun Poulsen commented
hi Aaron,
yes, but it is written in Black, not pink like other functions, like Round()
try typing
SELECT TRY_CAST(GETDATE() AS DATETIME)
SELECT ROUND(1.5 ,0)
in SSMS