170 likes | 235 Views
Sql Server Advanced Features. MIS 424 Professor Sandvig. Outline. Why use an enterprise database? Sql Server Management Studio Referential Integrity Security Programmability Example. Why Use Enterprise database. Scalability Security Reliability Programmability Auditing Other….
E N D
Sql Server Advanced Features MIS 424 Professor Sandvig
Outline • Why use an enterprise database? • Sql Server Management Studio • Referential Integrity • Security • Programmability • Example
Why Use Enterprise database • Scalability • Security • Reliability • Programmability • Auditing • Other…
Caveat • Enterprise databases complex & feature-rich products • Many features not discussed • Focus on “developer” features
SQL Server Management Studio • Provides interface to Sql Server • More features than Visual Studio • Security • Users & permissions • Programmability • Diagrams • Relationships • SSMS free download
SQL Server Management Studio • Features: Visual Studio vs. SQMS
Referential Integrity • Maintain integrity of relationships between primary and foreign keys • If primary key deleted foreign keys also deleted • SSMS tools • Database Diagrams
Security • Authentication & Authorization • Security is two step process: • Authentication: • Identifying user • Username & password • Authorization: • Check permissions for specific actions: • Select, insert, update, delete…
Authentication • Sql Server supports: • Windows Authentication • Sql Server Authentication
Windows Authentication • User identified by Windows OS • Windows prompt • Advantage: use existingWindows login • Manyorganizations use Active Directory
Sql Server Authentication • User created on SQL Server • Sql Server manages username/password • Benefit: • Can create specialized users with limited permissions • Example: ZipCodeReader
Authorization • Every request must be authorized • Common methods: • Create limited user • MusicStoreReader • Anonymous user: • IIS Network Service
Authorization • Authorization in 324 & 424 • Visual Studio – • Windows authentication • Database administrator • Full privileges • Upload to server • Runs under IIS • Network Service • CRUD (no create table, drop table, etc.)
SQL Server Authorization • SQL Server allows granular control: • Tables • Fields • Stored procedures
Programmability • Store queries on database • Stored procedures • Hide underlying tables • Control permissions • T-SQL – complex queries
Example: • Sql Server Management Studio: • ER Diagram • Referential Integrity • Create database • Add table • Create user • Add user permissions to database