Collections:
"CREATE PROCEDURE" - Creating Simple Stored Procedures in SQL Server
How To Create a Simple Stored Procedure in SQL Server Transact-SQL?
✍: FYIcenter.com
If you want to create a simple stored procedure with no input and output parameters, you can use the "CREATE PROCEDURE" command with a statement batch in a simple format as shown in below:
CREATE PROCEDURE procedure_name AS statement_1; statement_2; ... statement_n; GO
The following tutorial exercise shows you how to create a simple stored procedure:
USE FyiCenterData; GO CREATE PROCEDURE Hello AS SELECT 'Welcome to:'; SELECT ' FYIcenter.com'; GO Command(s) completed successfully. EXEC Hello; GO ----------- Welcome to; (1 row(s) affected) ---------------- FYIcenter.com (1 row(s) affected)
2017-01-05, 1657👍, 0💬
Popular Posts:
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
How To Create a Table in a Specific Tablespace in Oracle? After you have created a new tablespace, y...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...