12.07.2015 Views

Querying Microsoft® SQL Server® 2012 - Advanced Technology ...

Querying Microsoft® SQL Server® 2012 - Advanced Technology ...

Querying Microsoft® SQL Server® 2012 - Advanced Technology ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1-8 Introduction to Microsoft <strong>SQL</strong> Server <strong>2012</strong><strong>SQL</strong> Server DatabasesDatabases in <strong>SQL</strong> Server are containers for data and objects, including tables, views, stored procedures,user accounts, and other management objects. A <strong>SQL</strong> Server database is always a single logical entity,backed by multiple physical files.When client applications send requests to the database engine as T-<strong>SQL</strong> statements, <strong>SQL</strong> Server performsall file, memory, and processor utilization on the client's behalf. Clients never directly access database files,unlike in desktop database applications.<strong>SQL</strong> Server supports two types of databases: system and user. T<strong>SQL</strong><strong>2012</strong>, the sample database you will beusing to write queries, is a user database. <strong>SQL</strong> Server's system databases include:• master, the system configuration database.• msdb, the configuration database for the <strong>SQL</strong> Server Agent service and other system services.• model, the template for new user databases.• tempdb, used by the database engine to store temporary data such as work tables. This database isdropped and recreated each time <strong>SQL</strong> Server restarts - never store anything you need to depend onin it!• Resource, a hidden system configuration database that provides system objects to other databases.Database administrators and developers can create user databases to hold data and objects forapplications. You connect to a user database to execute your queries. You will need security credentials tolog in to <strong>SQL</strong> Server and a database account with permissions to access data objects in the database.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!