Click here to Skip to main content
15,921,212 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir,

Sorry for another question for example I have this stored procedure

CREATE PROCEDURE SAMPLE

AS

RETURN 1

how can i get the value "1" in vb.net?

THX for the answers ..
Posted
Updated 25-Oct-10 23:08pm
v3
Comments
Dalek Dave 26-Oct-10 5:08am    
Minor Edit for Grammar.

Use ExecuteScaler method in your Command object, like below
VB
Dim thisFetchVal As String = CType(cmd.ExecuteScalar(), String)
 
Share this answer
 
Go through the below link

http://www.codeguru.com/columns/vb/article.php/c5155[^]

Note: Code in C#, Try to change VB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900