About 228,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. sql - How do I pass a list as a parameter in a stored procedure ...

    93 The preferred method for passing an array of values to a stored procedure in SQL server is to use table valued parameters. First you define the type like this:

  3. Execute stored procedure with an Output parameter?

    Oct 19, 2009 · The easy way is to right-click on the procedure in Sql Server Management Studio (SSMS), select 'Execute stored procedure..." and add values for the input parameters as …

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

    In SQL Server, functions and stored procedure are two different types of entities. Function: In SQL Server database, the functions are used to perform some actions and the action returns a …

  5. How can I get the list of tables in the stored procedure?

    There are lot of tables and sp in the db. I find the tables name which are used in the specific sp (stored procedure). sp_depends %sp_name% not give the desire result. I am also used …

  6. How to view the stored procedure code in SQL Server …

    I am new to SQL Server. I am logged into my database through SQL Server Management Studio. I have a list of stored procedures. How do I view the stored procedure code? Right clicking on …

  7. Optional parameters in SQL Server stored procedure

    Jan 8, 2023 · 197 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 …

  8. 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 …

  9. sql server - Query to list all stored procedures - Stack Overflow

    What query can return the names of all the stored procedures in a SQL Server database If the query could exclude system stored procedures, that would be even more helpful.

  10. sql - Retrieve column names and types of a stored procedure?

    Jan 29, 2013 · Possible Duplicate: Retrieve column definition for stored procedure result set I use the following SQL to get column names and types for a table or view: DECLARE @viewname …