ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 482 Page Views: 

How can you call stored procedure from c# code?



Posted By: Avi Date: 14 October 2010 06:15:47 PM
 Answer:

By calling it using SqlCommand object


Posted By: avibtech


Date: 14 October 2010 06:15:47 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image x3We8U
Related Questions
ADO.Net : How do you refresh dataset?

How do you refresh dataset?

By calling one more time Fill method on DataAdapter
Category: ADO.Net Date: 10/14/2010 9:02:47 PM
ADO.Net : How do you define in connection string that SqlConnection should use SQL Server authentication?

How do you define in connection string that SqlConnection should use SQL Server authentication?

By specifying User ID and Password and setting Integrated Security to false
Category: ADO.Net Date: 10/14/2010 8:10:48 PM
ADO.Net : What provider can you use to access Excel workbook?

What provider can you use to access Excel workbook?

OLEDb
Category: ADO.Net Date: 10/14/2010 6:25:48 PM
ADO.Net : How can you call stored procedure from c# code?

How can you call stored procedure from c# code?

By calling it using SqlCommand object
Category: ADO.Net Date: 10/14/2010 6:15:47 PM
ADO.Net : Does ADO.NET supports paging through a query result?

Does ADO.NET supports paging through a query result?

Yes, DataAdapter.Fill method has option to page results
Category: ADO.Net Date: 10/14/2010 5:33:48 PM