PC Review


Reply
Thread Tools Rate Thread

not getting stored procedure Output Parameter value in VB.net

 
 
chinns
Guest
Posts: n/a
 
      30th Jun 2003
i am not getting the output parameter value in vB.net
after executing the storedprocedure.


CREATE PROCEDURE Search_Assets_By_String
@Search varchar(50),
@Descriptive bit,
@RC int Output

AS

IF @Descriptive = 1
BEGIN
Select * from Assets where (Name LIKE '%' +
@Search + '%' OR Description LIKE '%' + @Search + '%')
order by RowType desc, Name
SET @RC = @@ROWCOUNT
END
ELSE
BEGIN
Select * from Assets where (Name LIKE '%' +
@Search + '%') order by RowType desc, Name
SET @RC = @@ROWCOUNT
END
GO


plz tell wether this will return the value to
sqlparameter object value.




 
Reply With Quote
 
 
 
 
Jay Pondy
Guest
Posts: n/a
 
      30th Jun 2003
It will return the row count value to the SQLParameter object. Do you
have the SQLParameter's Direction property set to output?

chinns wrote:
> i am not getting the output parameter value in vB.net
> after executing the storedprocedure.
>
> CREATE PROCEDURE Search_Assets_By_String
> @Search varchar(50),
> @Descriptive bit,
> @RC int Output
>
> AS
>
> IF @Descriptive = 1
> BEGIN
> Select * from Assets where (Name LIKE '%' +
> @Search + '%' OR Description LIKE '%' + @Search + '%')
> order by RowType desc, Name
> SET @RC = @@ROWCOUNT
> END
> ELSE
> BEGIN
> Select * from Assets where (Name LIKE '%' +
> @Search + '%') order by RowType desc, Name
> SET @RC = @@ROWCOUNT
> END
> GO
>
> plz tell wether this will return the value to
> sqlparameter object value.


--
Direct access to this group with http://web2news.com
http://web2news.com/?microsoft.publi...amework.adonet
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored procedure with output parameter ashtek@gmail.com Microsoft C# .NET 7 6th Dec 2006 04:10 PM
how to get an OutPut parameter value of a stored procedure? =?Utf-8?B?Y2xvdWR4?= Microsoft C# .NET 0 8th May 2005 11:01 PM
Stored procedure parameter output value Steven Microsoft ASP .NET 5 27th May 2004 05:16 AM
Stored procedure parameter output value Steven Microsoft C# .NET 4 27th May 2004 02:28 AM
Stored procedure parameter output value Steven Microsoft Dot NET 4 27th May 2004 02:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:01 PM.