Hi,
I am using Sql server 2005.
I have to give SQL insert script to my client. But before it insert into table. I want to check if that records already exists in table, it should not insert.
Below are the insert query
INSERT INTO [UserPoint].[dbo].[tblStatus]([Type],[Name],[DisplayOrder]) VALUES (UsageLevel,High,1)
INSERT INTO [UserPoint].[dbo].[tblStatus]([Type],[Name],[DisplayOrder]) VALUES (UsageLevel,Medium,2)
INSERT INTO [UserPoint].[dbo].[tblStatus]([Type],[Name],[DisplayOrder]) VALUES (UsageLevel,Low,3)
The Table tblStatus has four fields id,type,name,displayorder. In which ID is autogenerated.
Please help!
Thanks.
Best Regards, MS