Download presentation
Presentation is loading. Please wait.
Published byLewis Bates Modified over 9 years ago
1
Ch 2. Creating and Configuring Databases
2
SQL Server Management Studio (SSMS) Graphical way to create / manage SQL Server Combines features from Query Analyzer, Enterprise Manager, Analysis Manager from SQL Server 2000 Start->Programs->Microsoft SQL Server 2005->Management Studio
3
Creating a database Using SSMS (Ex 2.1) Expand and Right Click Databases folder in Object Explorer Choose New Database
4
Creating a database (Ex 2.1) Enter database name Sybex Click OK to create Sybex database
5
Creating a database by T-SQL Click New Query in the toolbar which will open a new query window Type the following code: CREATE DATABASE Sybex2 Press F5 to Execute code
6
Creating a database by T-SQL Right click Databases in object explorer and select “Refresh”
7
Setting Database Options Right click Sybex in object explorer and select “Properties” to open database property window Click “options” on the left-hand panel Database options will now display on the right-hand panel
8
Setting Database Options Change “Auto Close” to True Click “OK” to close property window
9
Setting Database Options Change “Auto Close” to True Click “OK” to close property window
10
Setting Database Options by T-SQL Click New Query in the toolbar Type the following code: ALTER DATABASE Sybex SET AUTO_CLOSE OFF Press F5 to Execute code Go back to Sybex Database property- >Option, AUTO_CLOSE Option is now set to False.
11
Gathering Information about your database Left click on Sybex Database in Object Explorer Select Summary in toolbar
12
Gathering Information about your database Click Report button on the right hand panel, information about your database will be displayed graphically
13
Gathering Information about your database
14
Gathering Information about your database by T-SQL Click New Query in the toolbar Type the following code: SP_HELPDB Sybex GO SP_HELPFILE Sybex GO Press F5 to Execute code
15
Gathering Information about your database by T-SQL
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.