Vous êtes sur la page 1sur 25

Management Studio

Vu Tuyet Trinh
trinhvt-fit@mail.hut.edu.vn

Hanoi University of Technology


1

SQL Server Management Studio

Simplifies common management tasks


Integrated management interface Server transparency SQL Management Object extensibility

Microsoft

Outline

Integrated Management Environment Navigation Administering Databases Maintaining SQL Server Database Writing Transact-SQL with Query Editor Working with Templates, Solutions, Script Projects, and Source Control

Microsoft

Integrated Management Environment

Microsoft

Integrated Management Environment

Registered Servers

Microsoft

Integrated Management Environment

Summary Pane
Microsoft

Template Explorer & Solution Explorer


Template Explorer and Solution Explorer

Microsoft

Navigation with Object Explorer


Demo

Creating a new database Creating a table Creating a diagram Creating a login

Microsoft

Outline

Integrated Management Environment Navigation Administering Databases Maintaining SQL Server Database Writing Transact-SQL with Query Editor Working with Templates, Solutions, Script Projects, and Source Control

Microsoft

Disaster Recovery

Choose recovery model


Manage backup media Create base functionality script

Microsoft

Configuration Manager

Change the Service Log On Accounts for each SQL Service

Configure SQL Services, Network Protocols and Network Configuration


Microsoft

Manage the State and Start Mode for SQL Services

Surface Area Configuration


Services disabled and features not installed by default
New Installation SQL Server 2008

State of services and features carried over from upgraded installation


SQL Server 2005
Microsoft

SQL Server 2008

Surface Area Configuration


Services disabled and features not installed by default
SQL Server 2008

Surface Area Configuration for Services and Connections

Surface Area Configuration for Features


State of services and features carried over from upgraded installation
SQL Server 2008
Microsoft

Outline

Integrated Management Environment Navigation Administering Databases Maintaining SQL Server Database Writing Transact-SQL with Query Editor Working with Templates, Solutions, Script Projects, and Source Control

Microsoft

14

Backup and Restore


Demo

Creating a Backup Device Backing up a Database

Backing up a Transaction Log


Restoring a Database Export a Database Import a Database

Microsoft

Replication Enhancement

Redesigned replication wizards


Initializing replication subscribers Pre-computed partitions Transactional parallelism

Microsoft

Replication Monitor

View status of all publications and subscriptions Monitor all the publishers in your organization

Microsoft

Internet Replication
XML over HTTP/HTTPS Binary over TCP/IP

Subscriber

Firewall

IIS

Publisher

https://myserver.mydomain.com

Microsoft

Database Tuning Advisor

Microsoft

Query Editor

Query Editor Demo

Result
Microsoft

Outline

Integrated Management Environment Navigation Administering Databases Maintaining SQL Server Database Writing Transact-SQL with Query Editor Working with Templates, Solutions, Script Projects, and Source Control

Microsoft

21

Templates

Containing the T-SQL statements for common tasks. Containing parameters for the user-provided values As a starting point for programming (re-)Organized in a tree structure

Can be created by users

Microsoft

Solutions

Script project(s) Enabling the organization of files & connections within project

can be managed with a source control product ( as Microsoft Visual SourceSafe)

Microsoft

SQL Server Management Studio in 10


1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
Microsoft

Combines the best features of many tools Work with projects and solutions The tool is a data analyst's best friend You can display line numbers It's easier to find errors Get started faster with an expanded Template Explorer It (sort of) plays well with previous versions Name that registered server Manage your SQL Server Integration Services pages Keep tabs on your reports

Microsoft

Vous aimerez peut-être aussi