Using the API how do you turn on Compression.

Forum for users of SQL Packager database archive utility

Moderator: David Atkinson

Using the API how do you turn on Compression.

Postby rockywurden » Thu Feb 21, 2008 11:20 pm

If you use the SQLPackagerCodeSnippets where would you turn compression on.

Thanks
rockywurden
 
Posts: 6
Joined: Mon Dec 10, 2007 11:01 pm

See the PackagerEngine Constructor to turn compress on.

Postby rockywurden » Thu Feb 21, 2008 11:44 pm

PackagerEngine Constructor(String,String,String,ExecutionBlock,ExecutionBlock,OutputType,Boolean)

Public Function New( _
ByVal templateFolder As String, _
ByVal packageFolder As String, _
ByVal packageName As String, _
ByVal executionBlockSchema As ExecutionBlock, _
ByVal executionBlockData As ExecutionBlock, _
ByVal outputType As OutputType, _
ByVal compress As Boolean _
)
rockywurden
 
Posts: 6
Joined: Mon Dec 10, 2007 11:01 pm

Postby chris.buckingham » Tue Feb 26, 2008 1:33 pm

Thanks for follow up - this is retrieved from the RedGate.SQLPackager.Engine Namespace : PackagerEngine Class:

[Visual Basic]
Public Function New( _
ByVal templateFolder As String, _
ByVal packageFolder As String, _
ByVal packageName As String, _
ByVal executionBlockSchema As ExecutionBlock, _
ByVal executionBlockData As ExecutionBlock, _
ByVal outputType As OutputType, _
ByVal compress As Boolean _
)

[C#]
public PackagerEngine(
string templateFolder,
string packageFolder,
string packageName,
ExecutionBlock executionBlockSchema,
ExecutionBlock executionBlockData,
OutputType outputType,
bool compress
);

[C++]
public: PackagerEngine(
string* templateFolder,
string* packageFolder,
string* packageName,
ExecutionBlock* executionBlockSchema,
ExecutionBlock* executionBlockData,
OutputType outputType,
bool compress
)
Chris Buckingham
Red-Gate support
chris.buckingham
 
Posts: 56
Joined: Mon Jul 30, 2007 1:39 pm


Return to SQL Packager Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest