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

hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

1469


What is a streamwriter in c#?

579


Differentiate between sqlclient oledb and providers?

587


How to parse a date time string?

619


How does bubble sort work?

593






Why do we use yield in c#?

584


What is arraylist?

599


What is parsing?

605


What is the difference between int16 and int32 in c#?

541


When should I throw an exception?

649


What is lazy loading and eager loading in c#?

565


Do extension methods have to be static?

622


How do you use nullable?

574


What is c# entity framework?

571


How big is int16?

605