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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is literal in c#?

473


What is data bind in c#?

525


Explain the term inheritance in C#.

537


What is delegate in c#?

548


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

487






how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1287


Is stringbuilder better than string?

522


What is constructor overloading in c#?

499


What will be the output of the following code?

514


Are c# objects passed by reference?

467


How the versioning applies to Assemblies or can you explain version numbers?

572


How Is The Dll Hell Problem Solved In .net?

597


What is c# windows form application?

502


What does ienumerable mean?

482


What is the correct way of declaring an xml namespace?

472