160 likes | 301 Views
Sql Server Advanced Features. MIS 424 Professor Sandvig. Outline. Sql Server Management Studio Security Programmability Example. Caveat. Sql Server very complex & feature-rich product Many features not discussed Focus on “developer” features. Database Admin.
E N D
Sql Server Advanced Features MIS 424 Professor Sandvig
Outline • Sql Server Management Studio • Security • Programmability • Example
Caveat • Sql Server very complex & feature-rich product • 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 • Optimization
SQL Server Management Studio • Features: Visual Studio vs. SQMS
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 • ZipCodeReader • Anonymous user: • Web site • Network Service • Account • Built-in Windowsacct
SQL Server Authorization • SQL Server allows granular control: • Tables • Fields • Stored procedures
Programmability • Store queries on database • Reuse in many applications • Division of duties • Devs & DBAs • Security options • Hide underlying tables
Programmability • Stored procedures • Store query on database • Accept arguments • Assign permissions to procedure • T-Sql supports complex queries • CRUD support
Programmability • Functions • Read only • Support input parameters • Utilized inside sql statements: Select * FROM funGetNames Where NameF LIKE ‘s%’ Order by NameL • May use in other functions, SPs, SQL queries
Example: • Sql Server Management Studio: • Create database • Add table • Create user • Add user permissions to database