I have created an Azure SQL Server with SQL Database, as well as a table in that database named table1 with columns ID, FirstName, LastName, and DOB. However, when I try to use this statement:
INSERT INTO table1(ID, FirstName, LastName, DOB)
VALUES (1, "Rohit", "Karthik", "8/2/06")
it outputs an error:
Failed to execute query. Error: Invalid column name 'Rohit'.
Invalid column name 'Karthik'.
Invalid column name '8/2/06'.
(BTW: ID is of type int, and all the others are of type varchar)
Shouldn't the above SQL query in SQL Server insert the new row in that table?
I am not sure why this error is coming, please help.