See Also

ExecutionBlock Members  | RedGate.SQL.Shared Namespace

Requirements

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)

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Requirements Languages RedGate.SQL.Shared Send comments on this topic.

ExecutionBlock Class

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.

Inheritance Hierarchy

System.Object
   RedGate.SQL.Shared.ExecutionBlock

Syntax

[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 

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 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.

Requirements

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)

See Also

ExecutionBlock Members  | RedGate.SQL.Shared Namespace

 

 


© 2003 - 2007 Red Gate Software Ltd. All Rights Reserved.