Firebird ADO.NET Provider SDK Documentation - v1.7

FbStatistical Class

Retrieve database statistics for the database specified. This class cannot be inherited.

For a list of all members of this type, see FbStatistical Members.

System.Object
   FirebirdSql.Data.Firebird.Services.FbService
      FirebirdSql.Data.Firebird.Services.FbStatistical

[Visual Basic]
NotInheritable Public Class FbStatistical
    Inherits FbService
[C#]
public sealed class FbStatistical : FbService

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

The following sample request statistics for system tables and indexes in addition to user tables and indexes and displays it in Console.

FbStatistical statisticalSvc = new FbStatistical();

statisticalSvc.UserName = "SYSDBA";
statisticalSvc.UserPassword = "masterkey";

statisticalSvc.Database = @"C:\TESTDB.GDB";
statisticalSvc.Options = FbStatisticalFlags.SystemTablesRelations;
        
statisticalSvc.Start();

string lineOutput;
while((lineOutput = statisticalSvc.GetNextLine()) != null)
{
    Console.WriteLine(lineOutput);
}

statisticalSvc.Close();
                

Requirements

Namespace: FirebirdSql.Data.Firebird.Services

Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)

See Also

FbStatistical Members | FirebirdSql.Data.Firebird.Services Namespace