5. What properties we used to call stored procedure in C#?

Answers were Sorted based on User's Feedback



5. What properties we used to call stored procedure in C#?..

Answer / sudip pachal

CommandObject.CommandType=CommandType.StoreProcedure;
CommandObject.CommandText="Sp";
CommandObject.Executenonquery();

Is This Answer Correct ?    9 Yes 0 No

5. What properties we used to call stored procedure in C#?..

Answer / anil singh

Sqlcommand cmd=new Sqlcommand ();
cmd.CommandType=CommandType.StoreProcedure;
cmd.CommandText="Name-of-StoreProcedure";
cmd.ExecuteNonQuery();

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is it possible to nest cfml conditional tags?

0 Answers   HCL,


What is the output of TextWriterTraceListener redirected?

0 Answers   Siebel,


Can we write one page in c# and other in vb in one application ?

3 Answers   Keane India Ltd,


Why linq is having select clause at the end?

0 Answers  


How is the syntax written to inherit from a class in C#?Give an example ?

0 Answers   Siebel,






What is an extension method in c#?

0 Answers  


class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } } Debug above program.....

3 Answers   HCL,


What is object type in c#?

0 Answers  


What does ienumerable mean?

0 Answers  


Is there any way to access private memebers of an object from another object?

4 Answers   TCS,


What is readline c#?

0 Answers  


What do you mean by directing?

0 Answers  


Categories