File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL Procedures

 
Sharmilily Sha
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
What should be the datatype of the variable which should store multiple row results in sql stored procedures?
I want to return this variable to a C# application.

-- =============================================
CREATE PROCEDURE ParameterRetrieve
-- Add the parameters for the stored procedure here
@appId int = 0,
@paramSet nvarchar OUTPUT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SET @paramSet=(SELECT paramType,paramValue FROM [DB].[dbo].[Parameter_tbl] where appId=@appId)
RETURN @paramSet
END
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic