Execute a stored procedure in another stored procedure in SQL server

后端 未结 7 1404
盖世英雄少女心
盖世英雄少女心 2020-12-01 09:25

How can i execute a stored procedure in another stored procedure in SQL server? How will I pass the parameters of the second procedure.?

7条回答
  •  暖寄归人
    2020-12-01 09:48

    Yes , Its easy to way we call the function inside the store procedure.

    for e.g. create user define Age function and use in select query.

    select dbo.GetRegAge(R.DateOfBirth, r.RegistrationDate) as Age,R.DateOfBirth,r.RegistrationDate from T_Registration R
    

提交回复
热议问题