Sample Program On All Operations (Insert, Delete, Update, Reset) in
Sample Program On All Operations (Insert, Delete, Update, Reset) in
insert:
create procedure sample_ins(@empid int,@empname varchar(50),@empmobileno decimal(18,0),@empaddress varchar(max)) as begin insert into sample (empid,empname,empmobileno,empaddress)values(@empid,@empname, @empmobileno,@empaddress) end
Response.Write("Deleted Successfully...!");
Retrieving Data:
create procedure login1(@empid int),@password varchar(20) as begin select * from sample where empid =@empid end
Declare the connection string in the global of the class Then we need not to declare for all the operations NOTE: In the name space import the below string
using System.Data.SqlClient;