Export (0) Print
Expand All
Expand Minimize

Database.ID Property

Gets the database ID value that uniquely identifies the database.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Matrix)> _
Public ReadOnly Property ID As Integer 
	Get
'Usage
Dim instance As Database 
Dim value As Integer 

value = instance.ID

Property Value

Type: Int32
An Int32 value that specifies the database ID value.

Implements

IDatabaseOptions.ID

This property corresponds to the database ID value held in the system tables.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft