About 418,000 results
Open links in new tab
  1. sql - What is a stored procedure? - Stack Overflow

    A stored procedure is a named collection of SQL statements and procedural logic i.e, compiled, verified and stored in the server database. A stored procedure is typically treated like other …

  2. What are the best practices in writing a sql stored procedure

    Here are my stored procedure error-handling guidelines. Call each stored procedure using its fully qualified name to improve performance: that's the server name, database name, schema …

  3. If else in stored procedure sql server - Stack Overflow

    CREATE PROCEDURE: "Avoid the use of the sp_ prefix when naming procedures. This prefix is used by SQL Server to designate system procedures. Using the prefix can cause application …

  4. Function vs. Stored Procedure in SQL Server - Stack Overflow

    When should I use a function rather than a stored procedure in SQL, and vice versa? What is the purpose of each?

  5. Execute stored procedure with an Output parameter?

    Oct 19, 2009 · exec my_stored_procedure 'param1Value', 'param2Value' The final parameter is an output parameter. However, I do not know how to test a stored procedure with output …

  6. SQL stored procedure IF EXISTS UPDATE ELSE INSERT

    SQL stored procedure IF EXISTS UPDATE ELSE INSERT Asked 13 years, 4 months ago Modified 8 years, 5 months ago Viewed 95k times

  7. Where does SQL Server store the stored procedure code?

    Mar 3, 2016 · 29 I once needed the lines of the stored procedures to be able to trace whether I have a reference to some function, procedure or table, or sometimes to try to find something …

  8. Optional parameters in SQL Server stored procedure

    Jan 8, 2023 · I'm writing some stored procedures in SQL Server 2008. Is the concept of optional input parameters possible here? I suppose I could always pass in NULL for parameters I don't …

  9. SQL server stored procedure return a table - Stack Overflow

    I have a stored procedure that takes in two parameters. I can execute it successfully in Server Management Studio. It shows me the results which are as I expect. However it also returns a …

  10. How to return the output of stored procedure into a variable in sql ...

    Aug 15, 2012 · I want to execute a stored procedure in SQL Server and assign the output to a variable (it returns a single value) ?