TAILIEUCHUNG - Microsoft SQL Server 2005 Developer’s Guide- P49

Microsoft SQL Server 2005 Developer’s Guide- P49:SQL Server 2005 is a feature-rich release that provides a host of new tools and technologies for the database developer. This book is written to help database developers and DBAs become productive immediately with the new features and capabilities found in SQL Server 2005. | Chapter 12 Developing with SMO 459 TargetServerGroups Returns a . that represents the target server groups defined on SQL Server Agent. TargetServers Returns a .TargetServerCollection that represents the target server defined on SQL Server Agent. NOTE This list represents only the major objects in the SMO JobServer object hierarchy. Many of these objects also contain their own objects properties and collections. Building the SMO Sample Application In the first part of this chapter you had an overview of SMO objects followed by an explanation of some of the most important SMO collections methods and properties. In the next part of the chapter you learn how you can put SMO to work in a sample program. Figure 12-3 presents the main screen of an example SMO application name that was built using . Figure 12-3 A sample SMO application 460 Microsoft SQL Server 2005 Developer s Guide This sample application demonstrates many of the essential techniques required to use SMO including Creating the Server object Connecting to a SQL Server system Using collections Getting specific objects from a collection Creating new database objects Copying existing database objects Disconnecting from a SQL Server system The sample application lists the registered SQL Server systems in a drop-down box enabling the user to select the desired system to connect to. After selecting the desired SQL Server system the user selects the appropriate authentication type. If SQL Server Authentication is selected then the user is prompted to enter the Login ID and Password. If Windows Authentication is chosen the user simply clicks the Connect button. Following a successful connection the sample application lists all the databases the user is authorized to use. Lists showing the tables and columns for the first database in the list are filled in automatically. The

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.