Data Connections

Data connections represent a physical connection to a local or remote database. Through an established connection, you can gain access to and manipulate the various objects within a database. Each category of object shows up as a folder node under the Data Connections node. The tree items under each node allow you to directly interact with their physical database counterparts through a suite of designers and editors. These tools are covered in depth in Chapter 13, “Working with Databases.”

In Figure 5.10, we have connected to a SQL Server 2014 database and have access to the following objects within Server Explorer:

Image Tables

Image Views

Image Stored procedures

Image Functions

Image Synonyms

Image Types

Image Assemblies

In general, you can create new database objects, edit or delete existing ones, and, where appropriate, query data from a database object (such as a table or view).


Note

The level of functionality and the number of object types you can access through the Server Explorer depends on both the version of Visual Studio you are using and the version of the database you are connecting to. In other words, not all functions are supported across all databases. The Visual Database Tools interact most effectively with Microsoft SQL Server, although most basic functions are supported against a variety of other relational databases.



Note

In prior versions of Visual Studio, you could also access database diagrams from within Server Explorer. This is no longer true. If you are working with a SQL Server database, you will need to use the SQL Server Management Studio tools that ship with the database to edit diagrams outside of Visual Studio.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset