Abstract
Before you can do anything useful with a database, you need to establish a session with the database server. You do this with an object called a connection, which is an instance of a class that implements the System. Data. IDbConnection interface for a specific data provider. In this Chapter, you’ll use various data providers to establish connections and look at problems that may arise and how to solve them. In this Chapter, we’ll cover the following:
-
Introducing data provider connection classes
-
Connecting to SQL Server with SqlConnection
-
Improving your use of connection objects
-
Connecting to SQL Server with OleDbConnection
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Vidya Vrat Agarwal
About this chapter
Cite this chapter
Agarwal, V.V. (2012). Making Connections. In: Beginning C# 5.0 Databases. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4261-1_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4261-1_12
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4260-4
Online ISBN: 978-1-4302-4261-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books