Object Properties

SQL-DMO object properties provide access to instance data. For those SQL-DMO objects that reference specific Microsoft® SQL Server™ components, instance data identifies the referenced component for the application. For example:

Many properties are read-only, which expose informational data to the application. For example:

Some properties can be both read and written. Altering the value of a read/write property causes alteration in the referenced component. For example:


Important Modifying property values can have unintended consequences. For example, changing the Datatype or Length property of a Column object referencing an existing column alters the table containing the column and attempts to convert all data to the new data type. The process can be time-consuming and can fail. Applications that allow user property change should notify the user through a message or busy pointer and should provide appropriate error handling.


Some properties can be read or written when they do not reference an existing SQL Server component, but are read-only when they do. Typically, these properties name or identify a SQL Server component. For example:

A few properties are write-only. Write-only properties are used to specify arguments for component creation only.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.