sql server 2012 - Switching context in SSIS data sources -


the requirement:
have ssis project run on data in sql server, possibly logging in sql server using integrated authentication. project includes 1 section allows end users add select query source 1 dataflow. (the product allows user add data categorization , filtering type rules in configuration files).
want queries supplied user run in restricted context read-only access. must not possible trash database adding deleteor dropto query.

first pass solution:
create read-only user on database , use execute ... no revertto restrict context of query read-only user. unfortunately not work. ssis uses prepared statements in data source components, , with no revert not permitted sql server in prepared statements.

questions:
there way force ssis use ad-hoc queries in place of prepared statements in oledb data source component?
or ... there way force ssis change execution context data source component?

i have 1 other solution sleeve: use script component source. script component can set user context in number of ways.

there few answers on stackoverflow suggesting wrapping in begin tran / rollback tran. in separate sql tasks, removing ability disable them sneaky injection. still inject drop database data flow. no way roll one.

have checked whether dml runs in source of dataflow?

i question architecture of though..... running user defined queries in ssis?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -