BlockExcecutor does not support ConnectionProperties?

ssobolevssobolev Posts: 5
edited July 22, 2008 11:36AM in SQL Toolkit Previous Versions
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.

Comments

  • 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
Sign In or Register to comment.