Click here to Skip to main content
15,907,225 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
my comand is..
SQL
GO
DECLARE @return_value int

        EXEC @return_value = [dbo].[ IssuePlanDataforCStore]
   
    @iPlanDate = N '20121102',
    @iPlanMonth = 11,
    @iPlanYear = 2012
    SELECT 'Return Value' = @return_value
GO
...
Posted
Updated 21-Aug-13 23:57pm
v3
Comments
[no name] 22-Aug-13 5:51am    
What is the problem..??
Member 10222839 22-Aug-13 5:54am    
only i want to fetch data from database..using this comand.
BulletVictim 22-Aug-13 5:58am    
Assuming [dbo].[IssuePlanDataforCStore] is your stored procedure. It might have to look something like this.
EXEC [dbo].[IssuePlanDataforCStore] @return_value.
That is also assuming your stored proc only requires one parameter to be passed to it
Member 10222839 22-Aug-13 6:02am    
i tried.it is not working

use these lines of code
    sqlCommand cmd = new sqlCommand("store_procedureName", con);
            sqlDataAdapter da = new sqlDataAdapter(cmd);
cmd.commandtype=commandtype.storeprocedure;


select as answer if it helps..
 
Share this answer
 
v2
 
Share this answer
 
v2

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