Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Call Procedure without ? from .net

$
0
0

Hi,

 

I am calling a procedure which have parameters like

 

 

"CALL \"Schemananme\".\"ProcedureName\"(?)"

 

From .net code

 

 

using (DbCommand dbCommand = db.GetStoredProcCommand("CALL \"Schemananme\".\"ProcedureName\"(?)")

{

 

db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);

ds = db.ExecuteDataSet(dbCommand);

}

 

I want to construct command text dynamically so I dont want give ? in the command text.

 

Because I am constructing it dynamically, I dont know how many ?'s are  required.

 

Because Every procedure exists with different number of parameters.

 

any how i am adding input parameters

 

from  the below line

 

db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);

 

 

Please help me to construct the command text dynamically.




Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>