Hi,
I am doing Lesson 4: Working with SQL Data Types of the Microsoft 70-461: Querying SQL Server 2012 course. I am currently following video data types - part 10.
I am getting an error but I don't know why as I have copied the syntax correctly and the command completed successfully on the video, but not on mine.
Syntax:
INSERT INTO CustomerDetails
VALUES (NEWID(), 2, CONVERT(VARBINARY(MAX), "),
'<personal>
<spouse>Melinda</spouse>
<child id="1">Jack</child>
</personal>');
Error:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '1'.
Msg 105, Level 15, State 1, Line 5
Unclosed quotation mark after the character string '>Jack</child>
</personal>');
'.
Can someone please advise?
Thank you.
I am doing Lesson 4: Working with SQL Data Types of the Microsoft 70-461: Querying SQL Server 2012 course. I am currently following video data types - part 10.
I am getting an error but I don't know why as I have copied the syntax correctly and the command completed successfully on the video, but not on mine.
Syntax:
INSERT INTO CustomerDetails
VALUES (NEWID(), 2, CONVERT(VARBINARY(MAX), "),
'<personal>
<spouse>Melinda</spouse>
<child id="1">Jack</child>
</personal>');
Error:
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '1'.
Msg 105, Level 15, State 1, Line 5
Unclosed quotation mark after the character string '>Jack</child>
</personal>');
'.
Can someone please advise?
Thank you.