Skip to main content

Using Stored Procedures

  • Chapter
Beginning C# 5.0 Databases
  • 1870 Accesses

Abstract

A stored procedure is a collection of SQL statements that allows you to perform a task repeatedly. You can create the procedure once and reuse it any number of times in your program. This can improve the maintainability of your application and allow applications to access the database in a uniform and optimized manner. The goals of this chapter are to get you acquainted with stored procedures by creating and modifying them in SQL Server 2012 and to explain how C# programs can interact with them. This chapter covers the following:

  • Creating stored procedures

  • Modifying stored procedures

  • Displaying the definitions of stored procedures

  • Renaming stored procedures

  • Working with stored procedures in C#

  • Deleting stored procedures

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Vidya Vrat Agarwal

About this chapter

Cite this chapter

Agarwal, V.V. (2012). Using Stored Procedures. In: Beginning C# 5.0 Databases. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4261-1_6

Download citation

Publish with us

Policies and ethics