90 likes | 207 Views
October 1-2 Ølensvåg. Session Code: SQL-401-Hardcore Speaker(s): Vidar Nordnes. Hardcore SQL. sa’s password is blank. Easier that way. Whops! Forgot the WHERE clause. Backups? What backups? I used a clustered index so it’ll be redundant!
E N D
October 1-2 Ølensvåg
Session Code: SQL-401-Hardcore Speaker(s): Vidar Nordnes Hardcore SQL
sa’s password is blank. Easier that way. • Whops! Forgot the WHERE clause. • Backups? What backups? • I used a clustered index so it’ll be redundant! • Hey, what were you storing in that database? Was it important? No reason, I’m just, uh, curious • Why is my log file sooo much bigger than my database? • DMV? Yeah I’ve got to go renew my license! Thanks for reminding me • We’re migrating to Access • Just put it all on one disk #thingsYouShouldNeverHearADBASay
WHY shrink database is a big NO NO • What happens when you press F5? • How to read the Execution Plan • Index maintenance • Backup and restorestrategies Agenda:
Is this syntax ok? Algebrizer Output: Processor tree What happens when you press F5? Which tables? How many rows? Lowest cost? Query Optimization Output: Execution plan Execution
Index Scan Index Seek How to read the Execution Plan Compute Scalar Delete Filter Hash Match Insert
Remove Indexes Index Maintenance Observe Add Indexes
Backup types • Full • Differential • Transaction Log Backup and restorestrategies Tran Tran Tran Tran Tran Thursday Tuesday Wednesday Monday Sunday Friday Saturday Diff Diff Full Diff Diff Diff Diff