Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Sir....

I have a Stored Procedure for inserting the values in in the database and i want to know that what is the procedure to update and replace these values in the database .


ALTER proc [dbo].[usp_insertCorporateUserRenw]
(
@userID int,

@Mop nchar(20),
@Bankname varchar(80),
@Ammount varchar(80),
@chddno nchar(20),
@chdddate varchar(80)
)

as

insert into Paidmemberdetails (UserID,Mop,Bankname,Ammount,chddno,chdddate,utype,payactivation)
values (@userID,@Mop,@Bankname,@Ammount,@chddno,@chdddate,'U',0)
Posted

ALTER proc [dbo].[usp_insertCorporateUserRenw]
(
@userID int,
@Mop nchar(20),
@Bankname varchar(80),
@Ammount varchar(80),
@chddno nchar(20),
@chdddate varchar(80)
)

as

Update Paidmemberdetails set UserID=@userID,Mop=@userID,Bankname=@Bankname,Ammount=@Ammount,
chddno=@chddno,chdddate=@chdddate,utype='U',payactivation='0'where Uniquecolumn=@uniquecolumn
End
 
Share this answer
 
Comments
Swinky_Talwar 12-Feb-14 2:59am    
Thankyou So Much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900