TAILIEUCHUNG - Microsoft Press microsoft sql server 2005 PHẦN 4

Làm thế nào để cấu hình các tập tin dữ liệu và tập tin Đăng nhập Bạn có thể cấu hình các tập tin dữ liệu và các tập tin đăng nhập khi bạn đang tạo ra chúng bằng cách sử dụng các DATABASE CREATE Transact-SQL tuyên bố, và bạn có thể sửa đổi một cấu hình bằng cách sử dụng câu lệnh ALTER DATABASE. Ngoài ra, bạn có thể cấu hình các tập tin từ trang thuộc tính cơ sở dữ liệu trong SSMS. Bảng 2-1 mô tả các. | Chapter 7 Implementing Views A view is simply a SELECT statement that has a name and is stored in Microsoft SQL Server. Views act as virtual tables to provide several benefits. A view gives developers a standardized way to execute queries enabling them to write certain common queries once as views and then include the views in application code so that all applications use the same version of a query. A view can also provide a level of security by giving users access to just a subset of data contained in the base tables that the view is built over and can give users a more friendly logical view of data in a database. In addition a view with indexes created on it can provide dramatic performance improvements especially for certain types of complex queries. Most views allow only read operations on underlying data but you can also create updateable views that let users modify data via the view. This chapter shows you how to leverage the power and flexibility of views by creating regular views updateable views and indexed views. Exam objectives in this chapter Implement a view. Create an indexed view. Create an updateable view. Assign permissions to a role or schema for a view. Lessons in this chapter Lesson 1 Creating a Lesson 2 Modifying Data Through Lesson 3 Creating an Indexed Before You Begin To complete the lessons in this chapter you must have SQL Server 2005 installed. A copy of the AdventureWorks sample database installed in the instance. 237 238 Chapter 7 Implementing Views Real World Michael Hotek A couple of years ago I had a two-week project with a customer who was experiencing performance issues. When I started looking into the database I knew I was in for a big challenge. There were tens of thousands of lines of code spread among almost 2 000 stored procedures functions and triggers along with about 350 tables. What really stood out at first glance were the more than 800 views in the database. Having a large number of views in

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.