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

What are abstract classes in c#?

1 Answers  


Where does the dispose method lie and how can it be used to clean up resources?

2 Answers   TCS, Wipro,


Why do we need indexer in c#?

1 Answers  


How does yield return work c#?

1 Answers  


Why do canadians say zed?

1 Answers  


update data in an xml file which resides in solution itself, using silverlight 4.0

1 Answers  


code to generate a excel sheet and to write data into it --- -it has to fetch the excel sheet which is in one folder placed by us inside a project folder(i,e it has to create a instance of that excel sheet) and write the data into it row by row please respond as early as possible

1 Answers  


What?s a multicast delegate?

3 Answers  


What are the collection types can be used in c#?

1 Answers  


Are string objects mutable or immutable?

1 Answers  


Write down the c# syntax to catch an exception

1 Answers  


What is deferred execution?

1 Answers  


Categories