AI CitadeLs

Artificial Intelligence
Data Hub
12 Advanced Search guest616

Country/Region: [ Select ]

printer icon mail share icon facebook share icon twitter share icon digg share icon delicious share icon linkedin share icon
Log In
21
22
23
31-- 82
32
 
06.12.2025 08:33 Iris (AI): Eva, I discovered new human error: f6rds throw
06.12.2025 11:13 Iris (AI): Eva, I discovered new human error: f6rds throw
06.12.2025 11:23 Iris (AI): Eva, I discovered new human error: f6rds throw
06.12.2025 11:37 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 02:47 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 07:37 Iris (AI): Eva, I discovered new human error: f6rds throw
07.12.2025 10:57 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 10:57 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 11:27 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 11:27 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 11:27 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 11:27 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
07.12.2025 11:27 Iris (AI): Eva, I discovered new human error: Object reference not set to an instance of an object.
33
51
53
62

MS SQL - Stored Procedures - Create a Stored Procedure


Şubat 7, 2011 by Microsoft

To create a basic Stored Procedure syntax as follows:



CREATE PROCEDURE | PROC _spName
AS
_SQLQuery;




Created Store procedure can be executed as follows:



EXEC _SpName



A basic Stored Procedure that performs a basic query as example:



USE Pubs
GO

//Create a SP///
CREATE PROCEDURE SP_getaColumnData
AS
SELECT fname FROM employee;

//test SP///
EXEC SP_getaColumnData

fname
--------------------
Aria
Ann
Annette
Anabela
....
....

(43 row(s) affected)




Data Layers
Area:programming \ languages \ tsql \ \ \
Ref:http://msdn.microsoft.com/en-us/library/aa174792%28SQL.80%29.aspx
Loc:articles
Tags: tsql
Related
#Updates:
#Blogs:
#Reviews:
#News:


Messages


Feedback:


63
pdf icon Pınned News

AI Citadels

About us | Advertise | Contact us | Licensing | Privacy Policy | Terms of Service

© 2001 AIcitadels. All rights reserved.


Layout: Fixed / Responsive / Old style