RedGate.SQL.Shared Namespace : ExecutionBlock Class (RedGate.SQL.Shared) |
A series of SQL batches to be executed.
For a list of all members of this type, see ExecutionBlock members.
System.Object
RedGate.SQL.Shared.ExecutionBlock
[Visual Basic]
Public Class ExecutionBlock
Implements IBlockWriter
[C#]
public class ExecutionBlock : IBlockWriter
[C++]
public __gc class ExecutionBlock : public IBlockWriter
[C++/CLI]
public ref class ExecutionBlock : public IBlockWriter
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 GetFileStream
ExecutionBlock objects are created by GetMigrationSQL and RedGate.SQLCompare.Engine.Work.BuildFromDifferences. 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.
Namespace: RedGate.SQL.Shared
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: RedGate.SQL.Shared (in RedGate.SQL.Shared.dll)
ExecutionBlock Members | RedGate.SQL.Shared Namespace
© 2003 - 2007 Red Gate Software Ltd. All Rights Reserved.