Posted on: 11/16/2012 1:37:39 AM | Views : 413

Dear friends I am using SQL Server 2005 and asp.net4.0 I have table name "emp2" whose primary key "empid"[not mentioned ]as it is auto generated what i want to do is to put a check on Email ID {@email} so that no two users have same email id and if one is found in database the record should not insert following a return value 2 to asp.net this thing I want at time of insert and update Please Guide Me...... Query is[stored Procedure] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[sp_insert_emp2] @name varchar(50), @gender varchar(50), @marstat varchar(50), @logname varchar(50), @email varchar(50) , @joindt datetime , @depart varchar(50), @design varchar(50) , @Manager varchar(50) , ...

Go to the complete details ...