Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a array parameter
Message
From
16/12/2002 15:50:49
 
 
To
16/12/2002 14:07:42
Dave Sonier
Technologies Nter inc.
Gatineau, Quebec, Canada
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00733383
Message ID:
00733432
Views:
17
SQL Server and TSQL do not have an array data structure. You can return a result set by just doing a SELECT:

USE pubs
GO
CREATE PROCEDURE getAuthors
AS
SELECT * FROM authors

You can also return multiple values using XML. Refer to the BOL for more info, specifically the FOR XML clause.

-Mike

>Hi,
>
>If it possible with an SP to return an array, recordser or a cursor ?
>
>Thank in advance.
>
>Dave
>Technologies Nter
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform