Red Gate forums :: View topic - BlockExcecutor does not support ConnectionProperties?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Toolkit Previous Versions
SQL Toolkit Previous Versions forum

BlockExcecutor does not support ConnectionProperties?

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
ssobolev



Joined: 17 Jul 2008
Posts: 3

PostPosted: Thu Jul 17, 2008 5:55 pm    Post subject: BlockExcecutor does not support ConnectionProperties? Reply with quote

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.
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 755
Location: Red Gate Software Ltd.

PostPosted: Tue Jul 22, 2008 4:36 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group