A SQL Server database.

Namespace:  RedGate.SQLCompare.Engine
Assembly:  RedGate.SQLCompare.Engine (in RedGate.SQLCompare.Engine.dll)

Syntax

Visual Basic (Declaration)
Public Class Database _
	Implements ICancellable, IDisposable
C#
public class Database : ICancellable, IDisposable
Visual C++
public ref class Database : ICancellable, 
	IDisposable

Remarks

Use Register(ConnectionProperties, Options) to register the database from a live server or LoadFromDisk(String) to load a database from a snapshot.

Registering a database is a long-running operation. Status feedback is provided via the Status event handler. To cancel the operation, call CancelOperation.

You must call Dispose()()() when you have finished using a Database object.

Inheritance Hierarchy

System..::.Object
  RedGate.SQLCompare.Engine..::.Database
    RedGate.SQLCompare.BackupReader..::.BackupDatabase

See Also