I have an insert stored procedure which takes many parameters - 2 of them are @FirstName, @LastName.
I also have an update stored procedure which takes many parameters - 2 of them are @FirstName, @LastName.
What I want to do is, from inside the insert SP, when it's done, call the update SP and send to it the @FirstName, @LastName.
I don't know the right syntax to do that; I tried:
exec LandData_Update @FirstName, @LastName
But I think it's wrong.
Can someone tell me how to write this calling?
And if I will call the update sp with different param names? Such as @MyFirstName, @MyLastName? Would I write it like this: EXECUTE LandData_Update @MyFirstName=@FirstName, @MyLastName=@LastName
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…