I have an insert SP which takes many parameters, 2 of them are @FirstName, @LastName.
And have another update SP which takes manay parameters, 2 of them are @FirstName, @LastName.
What i want to do is:
from inside the insert SP "at its end", 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 its 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? will write it like that: EXECUTE LandData_Update @MyFirstName=@FirstName, @MyLastName=@LastName ??