TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P89

Microsoft SQL Server 2008 R2 Unleashed- P89:SQL Server 2005 provided a number of significant new features and enhancements over what was available in SQL Server 2000. This is not too surprising considering there was a five-year gap between these major SQL Server 2008 is not as much of a quantum leap forward from SQL Server 2005 | 824 CHAPTER 26 Implementing Data Integrity of the constraints PRIMARY KEY UNIQUE and FOREIGN KEY are actually contained under the Keys node. FIGURE Constraints in Object Explorer. When you select the New Constraint option from the Object Explorer the Check Constraints dialog shown in Figure appears. This dialog gives you the option to define a new CHECK constraint on the table selected. You simply fill in a valid expression for the constraint give it a unique name and select the options you want. FIGURE A new CHECK constraint in Object Explorer. Download from Using Constraints 825 Similarly you can right-click the Keys node and select New Foreign Key to add a new FOREIGN KEY constraint. Figure shows the Foreign Key Relationships dialog displayed after you select New Foreign Key. You click the ellipsis to the right of Tables and Columns Specification and you can select the primary key table you want the foreign key to relate to. Finally you select the desired options and you are ready to add your new FOREIGN KEY constraint. FIGURE A new FOREIGN KEY constraint in Object Explorer. 26 TIP When you use the Object Explorer to add or modify constraints two windows are important to this process. The first window is the Constraint window which allows you to input the constraint information. The Table Designer window that displays the column properties for the table is the other window that is important to the change process. It is launched in the background and you can view it on the tabbed display of SSMS. When you make changes using the Constraint window those changes are not applied via SSMS until the Table Designer window is closed. This may cause some confusion because even though you close your Constraint window with your changes those changes may not be reflected in the database. You must close the Table Designer window to be able to actually make the changes to the table. When you close the Table Designer window a prompt .

TỪ KHÓA LIÊN QUAN
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.