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

    12 In T-SQL stored procedures for input parameters explicit 'in' keyword is not required and for output parameters an explicit 'Output' keyword is required. The query in question can be …

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

    Thanks a lot, now. can anyone tell me how to create a trigger to add a rows in another table when any new rows has inserted in a table 'dbo.terms'?

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

  4. How to declare a variable in SQL Server and use it in the same …

    Im trying to get the value from BrandID in one table and add it to another table. But I can't get it to work. Anybody know how to do it right? CREATE PROCEDURE AddBrand AS DECLARE …

  5. T-SQL How to create tables dynamically in stored procedures?

    Jun 4, 2012 · Basically dynamic SQL allows you to construct a SQL Statement in the form of a string and then execute it. This is the ONLY way you will be able to create a table in a stored …

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

    The year is 2009 and SQL Server does not have CREATE OR ALTER/REPLACE. This is what I do instead. IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.ROUTINES WHERE …

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

  8. sql server - Temporary tables in stored procedures - Stack Overflow

    Dec 22, 2016 · The temp table (with single #) exists and is visible within the scope it is created (scope-bound). Each time you call your stored procedure it creates a new scope and therefore …

  9. How to check if a stored procedure exists before creating it

    Jan 15, 2010 · I need to have the missing stored procedures added to the client database, but it doesn't matter how much I try to bend T-SQL syntax, I get CREATE/ALTER PROCEDURE' …

  10. sql - Creating a View using stored procedure - Stack Overflow

    Oct 10, 2011 · 6 I use the following dynamic SQL code in my SQL database to create a view with a store procedure. It works fine: CREATE PROCEDURE uspCreateView AS EXEC (' CREATE …