Presentation is loading. Please wait.

Presentation is loading. Please wait.

Learningcomputer.com SQL Server 2008 - Working with Databases.

Similar presentations


Presentation on theme: "Learningcomputer.com SQL Server 2008 - Working with Databases."— Presentation transcript:

1 Learningcomputer.com SQL Server 2008 - Working with Databases

2 Working with Databases Databases are the building blocks of storage in SQL Server 2008 You can create a database by using one of the following methods: SQL Server Management Studio Transact SQL Script a database after creation Template Explorer

3 SQL Server Management Studio Easiest way to create a database Industry Best Practices Name should indicate the type of content Database objects should be intuitive with no spaces Data file and log file should be on separate physical drives. Why? For production database, the recovery option should be set to Full db_owner role should be limited to a few individuals We are going to create a database called Sales

4 Transact SQL Syntax is CREATE DATABASE More in SQL Server Help section We will create a database called Maint in our Demo

5 Other Transact SQL commands ALTER DATABASE sp_helpdb sp_dboption DROP DATABASE

6 Template Explorer Demo to create another database


Download ppt "Learningcomputer.com SQL Server 2008 - Working with Databases."

Similar presentations


Ads by Google