1.1 SQL Server 2005 管理工具介紹與使用. Overview Using SQL Server Management Studio Using SQL Configuration Manager Using the sqlcmd Utility.

Slides:



Advertisements
Similar presentations
Module 1: Introduction to SQL Server Reporting Services.
Advertisements

Automating Common DBA Tasks
Multiple Tiers in Action
Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Managing and Administering SQL Server 2005 Matthew Stephen ITPro Evangelist Microsoft Ltd
Using T-sql scripts. Migrating Sql Database to SQL Azure Database Create the Test Database In SQL Server Management Studio, on the File menu, point to.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Week 2 - Installation SQL SERVER2000 ENTERPRISE EDITION INSTALLATION.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Module 3: SQL Server 2005 Administrative Tools. Overview Using SQL Server Management Studio Using SQL Computer Manager Using the sqlcmd Utility Using.
SQL Server Management Studio Introduction
A Technical Overview of Microsoft SQL Server 2005 Melville Thomson IT Pro Evangelist (UK)
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
Module 11: Data Transport. Overview Tools and functionality in Oracle and their equivalents in SQL Server for: Data transport out of the database Data.
Module 9: Transferring Data. Overview Introduction to Transferring Data Tools for Importing and Exporting Data in SQL Server Introduction to DTS Transforming.
Tutorial SQL Server and Matlab CIS 526. Build a New Database in SQL server.
Module 13 Automating SQL Server 2008 R2 Management.
1 Working with MS SQL Server II. 2 The sqlcmd Utility Command line utility for MS SQL Server databases. Previous version called osql Available on classroom.
Module 2: Using Transact-SQL Querying Tools. Overview SQL Query Analyzer Using the Object Browser Tool in SQL Query Analyzer Using Templates in SQL Query.
1 Chapter Overview Reviewing the Results of Installation Starting, Stopping, Pausing, and Modifying Microsoft SQL Server 2000 Services Working with Osql,
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
3 Chapter Three Administering and Configuring SQL Server 2000.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
5 Copyright © 2007, Oracle. All rights reserved. Configuring the Oracle Network Environment.
INFS 752 Summer Juan Salazar Please right click the symbol in the lower right corner, and then press preview, to hear the presentation for each page.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Health South Network Demonstration of Attendance Enterprise.
Chapter 2: SQL – The Basics Objectives: 1.The SQL execution environment 2.SELECT statement 3.SQL Developer & SQL*Plus.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
1 © 2001, Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID SQL 2005.
Mainframe (Host) - Communications - User Interface - Business Logic - DBMS - Operating System - Storage (DB Files) Terminal (Display/Keyboard) Terminal.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
SQL Server 2012 Session: 1 Session: 3 Introduction to SQL Server 2012 Data Management Using Microsoft SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
A Brief Documentation.  Provides basic information about connection, server, and client.
Module 6: Managing and Monitoring Domain Name System (DNS)
Sumanth M Ganesh B CPSC 620.  SQL Injection attacks allow a malicious individual to execute arbitrary SQL code on your server  The attack could involve.
Annop Siritikul Technology Specialist Microsoft (Thailand) A Technical Overview of Microsoft ® SQL Server ™ 2005 Beta 2.
© 2008 IBM Corporation November 17, 2015 Informix Administration Overview John F. Miller III March 2008.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
Shell Interface Shell Interface Functions Data. Graphical Interface Graphical Interface Command-line Interface Command-line Interface Experiments Private.
Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.
Learningcomputer.com SQL Server 2008 – Management Studio.
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
Last Updated : 12 th April 2004 Center of Excellence Data Warehousing Group Overview of Teradata Utilities.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Creating Simple and Parallel Data Loads With DTS.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
Oracle 10g Administration Oracle Server Introduction Copyright ©2006, Custom Training Institute.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Practical MSBI(SSIS, SSAS,SSRS) online training. Contact Us: Call: Visit:
Getting the Most from SQL Server 2005 Don Vilen Program Manager SQL Server Microsoft Corporation.
DBMS Programs MS SQL Server & MySQL
Managing, Storing, and Executing DTS Packages
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Deploying and Configuring SSIS Packages
Automating SQL Server Management
Client Access, Queries, Stored Procedures, JDBC
Microsoft SQL Server 2014 for Oracle DBAs Module 1
QTP Test Process
Presentation transcript:

1.1 SQL Server 2005 管理工具介紹與使用

Overview Using SQL Server Management Studio Using SQL Configuration Manager Using the sqlcmd Utility

Lesson: Using SQL Server Management Studio What Is SQL Server Management Studio? How to Register a Server What Is Object Explorer? How to Execute Transact-SQL Queries Demonstration: Using Transact-SQL in SQL Server Management Studio What Is a SQL Server Management Studio Solution? How to Create a SQL Server Management Studio Solution Demonstration: Creating a Solution with Solution Explorer

Lesson: Using SQL Configuration Manager What Is SQL Configuration Manager? Demonstration: Using SQL Configuration Manager How to Control Services How to View and Change Service Properties How to Manage Server Network Connectivity How to Manage Client Network Connectivity

Lesson: Using the sqlcmd Utility What Is the sqlcmd Utility? sqlcmd Command-Line Switches How to Use the sqlcmd Utility Interactively How to Execute Scripts Using the sqlcmd Utility How to Use Variables With the sqlcmd Utility Demonstration: Using Variables with the sqlcmd Utility How to Use a Dedicated Administrator Connection

What Is the sqlcmd Utility? Command-line tool for executing Transact-SQL statements and scripts  Uses OLE DB to run Transact-SQL batches  Replaces osql Enhancements over osql  Variables  Query server information  Passes error information to calling environment  Dedicated Administrator Connection  Commands

How to Use Variables with the sqlcmd Utility SELECT $(colname) FROM $(tabname) GO SELECT $(colname) FROM $(tabname) GO Sqlcmd 1>:Setvar DB adventureworksDW 2>:connect R >backup database $(DB) to disk=‘c:\backup\$(DB).bak’ 2>go Sqlcmd 1>:Setvar DB adventureworksDW 2>:connect R >backup database $(DB) to disk=‘c:\backup\$(DB).bak’ 2>go Set sqlcmddbname=adventureworks Sqlcmd 1>:ListVar 2>Quit Set sqlcmddbname=adventureworks Sqlcmd 1>:ListVar 2>Quit Set colname=name Set tabname=sys.databases Sqlcmd -i myscript.sql Set colname=name Set tabname=sys.databases Sqlcmd -i myscript.sql Sqlcmd 1>:ListVar 2>Quit Sqlcmd 1>:ListVar 2>Quit

How to Use Variables with the sqlcmd Utility Create a sqlcmd script referencing variables 1 1 Invoke sqlcmd with –v to define the variables, or use environment variables 2 2 sqlcmd –i MyScript.sql –o MyScript.out –v colname="name" tabname="sys.databases" SELECT $(colname) FROM $(tabname) GO SELECT $(colname) FROM $(tabname) GO

Demonstration: Using Variables with the sqlcmd Utility In this demonstration, you will see how to: Reference variables in a script Instantiate variables from the command line Use environment variables

How to Use a Dedicated Administrator Connection Useful if the server hangs or is unresponsive  DAC runs using its own private scheduler Connect using sqlcmd -A 1 1 Diagnose the problem, terminate misbehaving connections, or shut down cleanly 2 2 1> CHECKPOINT 2> GO 1> SHUTDOWN WITH NOWAIT 2> GO Server shut down by request 1> CHECKPOINT 2> GO 1> SHUTDOWN WITH NOWAIT 2> GO Server shut down by request