April 21, 2016 at 10:45 am
Alan.B (4/21/2016)
I said 2. What is wrong with me.
You read T-R-Y-_-C-O-N-V-E-R-T as S-U-B-S-T-R-I-N-G
April 21, 2016 at 10:50 am
Explanation was incorrect. I had char and varchar, instead of nchar and nvarchar as the datatypes where an error should be returned.
Apologies for that. It has been corrected. I have also added an image of this running on SQL 2012.
April 21, 2016 at 10:51 am
Pher (4/21/2016)
Using SQL 2012-- Msg 195, Level 15, State 10, Line 5
-- 'NVARCHAR' is not a recognized built-in function name.
-- The TRY_Convert function requires 3 argument(s).
SELECT TRY_CONVERT(NVARCHAR(1), 234523)
Did I miss something?
No idea.
This is what I get:
April 22, 2016 at 5:38 am
I thought it was a fairly straightforward question.
April 25, 2016 at 6:42 am
Thanks for the question.
April 26, 2016 at 3:35 am
Easy one, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply