Microsoft SQL Server 2008 R2 IT:Network:Applications.

15
Microsoft SQL Server 2008 R2 IT:Network:Applications

Transcript of Microsoft SQL Server 2008 R2 IT:Network:Applications.

Page 1: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Microsoft SQL Server 2008 R2IT:Network:Applications

Page 2: Microsoft SQL Server 2008 R2 IT:Network:Applications.

SQL Server Administration Tasks Verify dataImport dataBackup dataSchedule/backup/maintain databases

Page 3: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Verify Data

• Review target data for consistency/integrity

• Define delimiter▫ Comma, tab, etc• Remove inconsistencies if possible• Possibly define columns

Page 4: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Verify Data

Page 5: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Verify Data

• Align indexes/table links (if multiple relationships exist

Page 6: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Import Data• Open Microsoft SQL Server Management

Studio• Connect to your SQL Server• Right click on your

databaseTasksImport Data

Page 7: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Import Data

•Select Import data•Choose data source•Choose columns•Complete import

Page 8: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Import Data

Page 9: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Backup Data

•In SQL Server Mgmt Studio▫Right click on DatabaseTasksBackup

Delete “default” backup destination and Add new one

Page 10: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Backup Data

Page 11: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Backup Data

•Equivalent Script▫BACKUP DATABASE [ABCCompany] TO

DISK = N'C:\backup\ABCCompany' WITH NOFORMAT, NOINIT, NAME = N'ABCCompany-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10

Page 12: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Schedule/backup/maintain Databases

•SQL Server Mgmt StudioManagementMaintenance PlansMaintenance Plan Wizard

Page 13: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Schedule/backup/maintain Databases

Page 14: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Schedule/backup/maintain Databases

•Select maintenance tasks▫Integrity▫Rebuild Index▫Backup▫Etc.

Page 15: Microsoft SQL Server 2008 R2 IT:Network:Applications.

Questions?