I have Designing as follows
Employee ID: Dropdownlist
Employee Name: textbox1
Date of birth textbox2
Age textbox3
Address textbox4
Area textbox5
Mobile No textbox6
for that how to save the record using strore procdedure please help me and send the code.
Thanks,
Rao.
Akkiraju IvaturiPosted Aug 28, 2012, 2:32 AM
Create Procedure SaveEmployee
@EmployeeID Int,
@EmployeeName Varchar(50),
@DOB DateTime,
@Age int,
@Address Varchar(50),
@Area Varchar(50),
@Mobile Varchar(50)
AS
BEGIN
INSERT INTO TABLE1 VALUES( @EmployeeID , @EmployeeName , @DOB ... All the parameters as comma seperated)
END
If EmployeeID is Identity column, then remove the parameter @EmployeeID