Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

SQL 2012 - error help needed

$
0
0
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.

Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>