Hi There,
Just testing a database and was wondering why this simple code does not work,
USE [totalglassdb]
GO
INSERT INTO [Test1] , [Test2]
VALUES ["Steve"] , ["Wilson"];
GO
Thanks for your help.
Hi There,
Just testing a database and was wondering why this simple code does not work,
USE [totalglassdb]
GO
INSERT INTO [Test1] , [Test2]
VALUES ["Steve"] , ["Wilson"];
GO
Thanks for your help.
You do not say in which table the values need to be added (I assume Test1 and Test2 are fieldnames?)
insert into Tablename([Test1],[Test2])
values( "Steve", "Wilson")
For SQL Server, double quotes are not normally used for literals, only for identifiers (such as column names). Therefore:
INSERT INTO dbo.your_table_name ( [Test1], [Test2] )
VALUES ('Steve', 'Wilson')
Thanks Scott, That worked.
Best Regards,
Steve.