PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
not getting stored procedure Output Parameter value in VB.net
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
not getting stored procedure Output Parameter value in VB.net
![]() |
not getting stored procedure Output Parameter value in VB.net |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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.publ...ramework.adonet |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

