BlockExcecutor does not support ConnectionProperties?

Forum for users of SQL Toolkit 3,4,and 5

BlockExcecutor does not support ConnectionProperties?

Postby ssobolev » Thu Jul 17, 2008 4:55 pm

It seems to me like API inconsistency.
I can initialize ConnectionProperties using data provided by other parts of applicationand use them in most places where I need to connect to database. But not in BlockExecutor - here I should go through all of connection properties generation routines again???

Doesn't seems too good to me.
Posts: 3
Joined: Thu Jul 17, 2008 4:46 pm

Postby Chris Auckland » Tue Jul 22, 2008 3:36 pm

Thanks for your post.

I believe you can use ConnectionProperties in the ExecuteBlock method. e.g.

blockExecutor.ExecuteBlock(work.ExecutionBlock, db2.ConnectionProperties.Server, db2.ConnectionProperties.Database)

I hope this is helpful.
Chris Auckland
Posts: 760
Joined: Tue Oct 24, 2006 1:12 pm
Location: Red Gate Software Ltd.

Return to SQL Toolkit Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests