About 185,000 results
Open links in new tab
  1. SQL Server: how to create a stored procedure - Stack Overflow

    CREATE PROCEDURE dept_count ( -- Add input and output parameters for the stored procedure here @dept_name varchar(20), --Input parameter @d_count int OUTPUT -- Output parameter …

  2. sql - What is a stored procedure? - Stack Overflow

    A stored procedures will reduce network traffic and increase the performance. If we modify a stored procedure all the clients will get the updated stored procedure. Sample of creating a …

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

    Aug 15, 2012 · I had to create a temp table and set the variable from the table (SQL 2008) From this: declare @anID int exec @anID = dbo.StoredProc_Fetch @ID, @anotherID, @finalID …

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

  5. How to update a table using stored procedures in SQL Server

    I have created a table in SQL Server called "Employee", and now I want to update the table using a stored procedure. The table has emp_name, emp_code and status columns. Assume the …

  6. Create a stored procedure to insert new data into a table

    Your code is not correct. You put value in insert part. You should enter value in execution part . CREATE PROCEDURE dbo.terms @Term_en NVARCHAR(50) = NULL , @Createdate …

  7. Creating a stored procedure if it does not already exist

    Apr 9, 2014 · One idiom that I've been using lately that I like quite a lot is: if exists (select 1 from sys.objects where object_id = object_id('dbo.yourProc')) set noexec on go create procedure …

  8. sql server - How to automatically run a stored procedure on …

    Aug 28, 2012 · You can create a job with the SQL Server Agent. Right-click on the Jobs folder to open the menu, select New Job: When you create a new job a window will open and you will …

  9. Microsoft SQL Server - Who created a Stored Procedure?

    Nov 19, 2009 · We have a table in our administrative database that gets all the activity put in it. It uses a DDL trigger, new to 2005. These scripts create a table in your admin DB (SQL_DBA for …

  10. What do you do in SQL Server to CREATE OR ALTER?

    Now let's assume that someone wants to update this procedure using DROP-CREATE: DROP PROCEDURE dbo.my_procedure; GO CREATE PROCEDURE dbo.my_procedure AS -- …

Refresh