次の方法で共有


IsSystemObject プロパティ

データベースがシステム オブジェクトとユーザー定義データベースのどちらであるかを示す Boolean 値を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute> _
Public ReadOnly Property IsSystemObject As Boolean
    Get
'使用
Dim instance As Database
Dim value As Boolean

value = instance.IsSystemObject
[SfcPropertyAttribute]
public bool IsSystemObject { get; }
[SfcPropertyAttribute]
public:
virtual property bool IsSystemObject {
    bool get () sealed;
}
[<SfcPropertyAttribute>]
abstract IsSystemObject : bool
[<SfcPropertyAttribute>]
override IsSystemObject : bool
final function get IsSystemObject () : boolean

プロパティ値

型: System. . :: . .Boolean
データベースがシステム オブジェクトであるかどうかを示す Boolean 値。
True の場合、データベースはシステム オブジェクトです。False (既定値) の場合、データベースはユーザー定義です。

実装

IDatabaseOptions. . :: . .IsSystemObject

使用例

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server

'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")

'Display  information about the database.
Console.WriteLine("Is Database snapshot : " + _
db.IsDatabaseSnapshot.ToString)
Console.WriteLine("Is Database snapshot base : " + _
db.IsDatabaseSnapshotBase.ToString)
Console.WriteLine("User is Aministrator : " + _
db.IsDbAccessAdmin.ToString)
Console.WriteLine("User is backup operator : " + _
db.IsDbBackupOperator.ToString)
Console.WriteLine("User is data reader : " + _
db.IsDbDatareader.ToString)
Console.WriteLine("User is data writer : " + _
db.IsDbDatawriter.ToString)
Console.WriteLine("User is DDL administrator : " + _
db.IsDbDdlAdmin.ToString)
Console.WriteLine("User denied data reader : " + _
db.IsDbDenyDatareader.ToString)
Console.WriteLine("User denied data writer : " + _
db.IsDbDenyDatawriter.ToString)
Console.WriteLine("User is database owner : " + _
db.IsDbOwner.ToString)
Console.WriteLine("User security administrator : " + _
db.IsDbSecurityAdmin.ToString)
Console.WriteLine("Full text is enabled : " + _
db.IsFullTextEnabled.ToString)
Console.WriteLine("Database is a mail host : " + _
db.IsMailHost.ToString)
Console.WriteLine("Mirroring is enabled : " + _
db.IsMirroringEnabled.ToString)
Console.WriteLine("Database is a system object : " + _
db.IsSystemObject.ToString)
Console.WriteLine("Database is updateable : " + _
db.IsUpdateable.ToString)