learningcomputer.com sql server 2008 - working with databases
TRANSCRIPT
![Page 1: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/1.jpg)
Learningcomputer.com
SQL Server 2008 - Working with Databases
![Page 2: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/2.jpg)
Working with DatabasesDatabases are the building blocks of
storage in SQL Server 2008You can create a database by using one of
the following methods:SQL Server Management StudioTransact SQL
Script a database after creationTemplate Explorer
![Page 3: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/3.jpg)
SQL Server Management StudioEasiest way to create a database Industry Best Practices
Name should indicate the type of contentDatabase objects should be intuitive with no
spacesData file and log file should be on separate
physical drives. Why?For production database, the recovery option
should be set to Fulldb_owner role should be limited to a few
individuals We are going to create a database called Sales
![Page 4: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/4.jpg)
Transact SQLSyntax is CREATE DATABASEMore in SQL Server Help section We will create a database called Maint in
our Demo
![Page 5: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/5.jpg)
Other Transact SQL commandsALTER DATABASE sp_helpdbsp_dboptionDROP DATABASE
![Page 6: Learningcomputer.com SQL Server 2008 - Working with Databases](https://reader036.vdocuments.mx/reader036/viewer/2022082820/56649ea35503460f94ba7f3c/html5/thumbnails/6.jpg)
Template ExplorerDemo to create another database