A series of SQL batches to be executed.

Namespace:  RedGate.SQL.Shared
Assembly:  RedGate.SQL.Shared (in RedGate.SQL.Shared.dll)

Syntax

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

Remarks

An ExecutionBlock contains a series of SQL batches that can be executed against a SQL database. It is essentially a wrapper over a text file with extra information about batch markers (GO statements) and statements that need to be repeated before a batch is run (such as variable declarations).

An ExecutionBlock contains Batch objects which in turn contain Line objects.

The underlying stream can be accessed from M

ExecutionBlock objects are created by M and M. There should be no need to create an ExecutionBlock manually.

It is essential to call the Dispose()()() method of ExecutionBlock objects to ensure temporary files are deleted.

Inheritance Hierarchy

System..::.Object
  RedGate.SQL.Shared..::.ExecutionBlock

See Also