Is there a way to insert into an SQL database where the whole record is unique? I know you can make primary keys and unique columns, but that is not what I want.
Wha
You could do:
create table #temp (val1 varchar(30), val2 varchar(30))
declare @val1 varchar(30),@val2 varchar(30)
select @val1='josh',@val2='bob'
insert into #temp
select @val1, @val2
where not exists (select * from #temp where val1=@val1 and val2=@val2)
Run the bottom half twice and it won't insert the record more then once.