1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] What does the new stored procedure default content mean?

Discussão em 'Outras Linguagens' iniciado por Stack, Setembro 27, 2024 às 15:12.

  1. Stack

    Stack Membro Participativo

    When I create a new stored procedure I get an initial example of a stored procedure, what does this section mean? :

    CREATE PROCEDURE <Procedure_Name, sysname, ProcedureName>
    -- Add the parameters for the stored procedure here
    <@Param1, sysname, @p1> <Datatype_For_Param1, , int> = <Default_Value_For_Param1, , 0>,
    <@Param2, sysname, @p2> <Datatype_For_Param2, , int> = <Default_Value_For_Param2, , 0>


    ..... ...

    I define my stored procedure like this:

    CREATE PROCEDURE HumanResources.uspGetEmployees
    @LastName nvarchar(50),
    @FirstName nvarchar(50)


    .....

    So what does the above parameters and procedure name default syntax means? (by the way , the default text doesn't execute too).

    Continue reading...

Compartilhe esta Página