tailieunhanh - Microsoft SQL Server 2005 Developer’s Guide- P48

Microsoft SQL Server 2005 Developer’s Guide- P48: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 449 To refer to the first database object by ordinal number you use the following code Dim oServerConn As ServerConnection New ServerConnection SQL2005 True Dim oSQLServer As New Server oServerConn 0 Again this code implicitly uses the Item method of the Databases collections. In this case the Item method is passed the first ordinal value instead of a string containing the name of the database. The ordinal value of 0 returns the first database in the oSQLServer object. Similarly the ordinal value of 1 returns the second database and so on. SMO Hierarchy The SMO object model extends and supplants its predecessor the SQL-DMO object model. Unlike the SQL-DMO object framework which was based on COM the newer SMO object model is based on the .NET framework. This means that SMO requires the .NET framework to be installed on the systems that are used to run SMO management applications. SMO can be used to manage SQL Server 7 and SQL Server 2000 as well as SQL Server 2005 allowing you to easily manage a multiversion environment. SQL-DMO will also continue to be supported by SQL Server 2005 allowing backward compatibility for your applications but SQL-DMO has not been enhanced to include the new features found in the new release. In other words SQL-DMO is limited to supporting only those features that were found in the previous releases of SQL Server. The new SMO object framework contains over 150 new classes enabling your custom management application to take advantage of the new features found in SQL Server 2005. The SMO object model consists of a hierarchy of objects contained in several namespaces and .dll files. The different SMO namespaces represent different areas of functionality within SMO. Table 12-2 lists the namespaces and their relative functionality. The core SMO namespace is implemented as a .NET assembly. This means that .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã 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.