I am using asp.net 2.0 /sql 2005 and have setup a basic form to store contact info.
I use a basic insert statement in an ASP page to insert the form fields into table1.
I would like to check to see if the PK which is made up of fname, lname, and addr1 exists in table2 before inserting.
I can't figure out the best procedure for this, SQL statement, store proc, or something else .
Any help with the code to handle this would be greatly appreciated.
I am new to .net and SQL
					I use a basic insert statement in an ASP page to insert the form fields into table1.
I would like to check to see if the PK which is made up of fname, lname, and addr1 exists in table2 before inserting.
I can't figure out the best procedure for this, SQL statement, store proc, or something else .
Any help with the code to handle this would be greatly appreciated.
I am new to .net and SQL
Comment