below is my insert command I am trying to insert IP addresses into a record in the table. The IP_Address attribute has nvarchar datatype. However the error shows under the number 206 in the IP address
Code:
INSERT INTO [IP_Loc].[dbo].[IP_Addresses] (IP_Address) VALUES
(98.137.206.119,98.137.206.126)
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '.206'.
Any idea what the problem might be ?
Two issues – an
NVARCHARthat is not enclosed in', and aVALUESthat has two values, instead of ONE: