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

Nếu cơ sở dữ liệu của bạn có một truy cập nhiều bảng ví dụ, Đặt hàng Xem chi tiết bạn có thể tạo ra nhiều tập tin dữ liệu thứ cấp cho cơ sở dữ liệu, lưu trữ các tập tin trên ổ đĩa khác nhau, và nhóm các tập tin trong một filegroup. Sau đó, bạn có thể lưu trữ các bảng Chi tiết Đặt hàng filegroup này để truy vấn đối với bảng có thể lây lan qua các ổ đĩa. | Lesson 1 Configuring Log and Data Files 55 If your database has an access-intensive table for example Order Detail you could create multiple secondary data files for the database store the files on different disk drives and group these files in a filegroup. Then you could store the Order Detail table in this filegroup so that queries against the table would be spread across the disks. BEST PRACTICES Filegroup design Create at least one user-defined filegroup to hold secondary data files and database objects. Configure this filegroup as the default filegroup so that SQL Server will store all objects you create in this filegroup. How to Configure Data Files and Log Files You can configure data files and log files when you re creating them by using the CREATE DATABASE Transact-SQL statement and you can modify a configuration by using the ALTER DATABASE statement. Alternatively you can configure the files from the Database Properties page in SSMS. Table 2-1 describes the options that you can configure for each file. Table 2-1 File Configuration Options Option Description Name The logical name for the file. Filename The operating system full path and file name. Size The size for the file. When you do not specify a size for the primary file the database engine uses the size of the primary file on the model database. If you specify a secondary or log file without the size option the database engine creates files that are 1 MB in size. Maxsize The maximum size for the file. If you do not specify maxsize or you specify the UNLIMITED value the file grows until the drive is full. In SQL Server 2005 a log file has a maximum size of 2 terabytes and data files have a maximum size of 16 terabytes. Filegrowth Specifies the automatic growth allowed for the file. You can specify the value in kilobytes megabytes gigabytes or terabytes or as a percentage of the actual file size. If you specify a value of 0 the file will not grow. 56 Chapter 2 Configuring SQL Server 2005 As a rule you

Đã 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.