<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Execute SSIS via Stored Procedure (SSIS 2012)</title>
	<atom:link href="http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=execute-ssis-via-stored-procedure-ssis-2012</link>
	<description>Because the world needs another Business Intelligence blog!</description>
	<lastBuildDate>Fri, 14 Sep 2018 19:30:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>By: Links Naji</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-3380</link>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
		<pubDate>Fri, 09 Oct 2015 14:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-3380</guid>
		<description><![CDATA[Hey Punit, I think u need to use sql_variant instead of string as the parameter&#039;s type, but then again, I haven&#039;t worked with SQL Server for a couple of years now, so things might have changed.]]></description>
		<content:encoded><![CDATA[<p>Hey Punit, I think u need to use sql_variant instead of string as the parameter&#8217;s type, but then again, I haven&#8217;t worked with SQL Server for a couple of years now, so things might have changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Punit Kishore</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-3372</link>
		<dc:creator><![CDATA[Punit Kishore]]></dc:creator>
		<pubDate>Tue, 22 Sep 2015 13:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-3372</guid>
		<description><![CDATA[Hi,

I am getting below error when we are parametrizing the id.I am using string in SSIS.But in the sql  we can&#039;t provide string.How to resolve this .

I Procedure check_data_type_value, Line 26
The data type of the input value is not compatible with the data type of the &#039;String&#039;.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am getting below error when we are parametrizing the id.I am using string in SSIS.But in the sql  we can&#8217;t provide string.How to resolve this .</p>
<p>I Procedure check_data_type_value, Line 26<br />
The data type of the input value is not compatible with the data type of the &#8216;String&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-3278</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 28 Aug 2014 06:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-3278</guid>
		<description><![CDATA[Hi, good article!

Can you help me with one thing.
I&#039;m using similar ssis package execution in my project.
I have a job with few steps, one of them (step 1) run ssis package synchronously, then all other steps.
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id1,  @object_type=50, @parameter_name=N&#039;SYNCHRONIZED&#039;, @parameter_value=1

And everything worked fine.
But recently I found out that if for some reason package will fail it won&#039;t prevent failing the whole job and continue execution
Do you know is there any way to configure this execution in such way that when the ssis package fail, it will throw error and prevent my process from further running.

I would really appreciated for any help.

Thanks,
Alex]]></description>
		<content:encoded><![CDATA[<p>Hi, good article!</p>
<p>Can you help me with one thing.<br />
I&#8217;m using similar ssis package execution in my project.<br />
I have a job with few steps, one of them (step 1) run ssis package synchronously, then all other steps.<br />
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id1,  @object_type=50, @parameter_name=N&#8217;SYNCHRONIZED&#8217;, @parameter_value=1</p>
<p>And everything worked fine.<br />
But recently I found out that if for some reason package will fail it won&#8217;t prevent failing the whole job and continue execution<br />
Do you know is there any way to configure this execution in such way that when the ssis package fail, it will throw error and prevent my process from further running.</p>
<p>I would really appreciated for any help.</p>
<p>Thanks,<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juha S</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-3262</link>
		<dc:creator><![CDATA[Juha S]]></dc:creator>
		<pubDate>Tue, 12 Aug 2014 13:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-3262</guid>
		<description><![CDATA[Did Armando, or any other, found a working solution to this :) I&#039;m having the same problem now as well.

My stored procedure is executing a SSIS-package. I&#039;d need to call this procedure by using SQL Server Authentication.]]></description>
		<content:encoded><![CDATA[<p>Did Armando, or any other, found a working solution to this <img src="http://thinknook.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> I&#8217;m having the same problem now as well.</p>
<p>My stored procedure is executing a SSIS-package. I&#8217;d need to call this procedure by using SQL Server Authentication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Machurey</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-3085</link>
		<dc:creator><![CDATA[Alan Machurey]]></dc:creator>
		<pubDate>Wed, 30 Oct 2013 18:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-3085</guid>
		<description><![CDATA[It sounds like I have the same setup as Armando and I can&#039;t get this setup to work.   This is the error I receive when I run the stored procedure.

&quot;The current security context cannot be reverted. Please switch to the original database where &#039;Execute As&#039; was called and try it again.&quot;

I&#039;m calling a SP in Database A with a SQL Login which is trying to execute an SSIS package in SSISDB.   The SP is running with EXECUTE AS [windows login].  Is this possible to do??]]></description>
		<content:encoded><![CDATA[<p>It sounds like I have the same setup as Armando and I can&#8217;t get this setup to work.   This is the error I receive when I run the stored procedure.</p>
<p>&#8220;The current security context cannot be reverted. Please switch to the original database where &#8216;Execute As&#8217; was called and try it again.&#8221;</p>
<p>I&#8217;m calling a SP in Database A with a SQL Login which is trying to execute an SSIS package in SSISDB.   The SP is running with EXECUTE AS [windows login].  Is this possible to do??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links Naji</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-2473</link>
		<dc:creator><![CDATA[Links Naji]]></dc:creator>
		<pubDate>Tue, 09 Jul 2013 15:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-2473</guid>
		<description><![CDATA[Hi Armando,

Sorry for not replying for ages, I was away on holiday... I really hope you found the answer to your question!, but if not, and if I understand you correctly, then have you tried adding the following to your SP:

EXECUTE AS &#039;domain\user&#039;

Instead of EXECUTE AS Owner

and give the &#039;domain\user&#039; permissions to be the db_owner on the database, and the ssis_admin on the SSISDB database?

I will try and replicate your scenario and see if I can get it to work, am sure there is an easy workaround, just need to get my head around the question exactly!

Cheers]]></description>
		<content:encoded><![CDATA[<p>Hi Armando,</p>
<p>Sorry for not replying for ages, I was away on holiday&#8230; I really hope you found the answer to your question!, but if not, and if I understand you correctly, then have you tried adding the following to your SP:</p>
<p>EXECUTE AS &#8216;domain\user&#8217;</p>
<p>Instead of EXECUTE AS Owner</p>
<p>and give the &#8216;domain\user&#8217; permissions to be the db_owner on the database, and the ssis_admin on the SSISDB database?</p>
<p>I will try and replicate your scenario and see if I can get it to work, am sure there is an easy workaround, just need to get my head around the question exactly!</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armando C</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-2335</link>
		<dc:creator><![CDATA[Armando C]]></dc:creator>
		<pubDate>Wed, 26 Jun 2013 22:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-2335</guid>
		<description><![CDATA[I give execution permissions on my procedure to one user with windows authentication (with db_owner permissions on my data base and ssis admin on the SSISDB) and he can run the procedure without problem, but just the db_onwer role is the problem,

 I tried run my stored procedure with clause with execute as OWNER and when I try run the stored procedure I get an error:


&quot;The server principal user is not able to access the database ssisdb under current security context&quot;

I have read about is and the problem is because need db across chaining I suppose because one db is mydtabase where are sp and the other database is SSISB (this for use execute as context) I followed the steps by db cross chaing but give an error because the sid of my master is diferent that sid of mydatabase and ssisdb  database and I can&#039;t change this....

The main problem is that with db_onwer role run ok, but i need the user can&#039;t see and take control of all objects in my data base, the user only must can run this sp!!

someone idea?

Thanks for all!]]></description>
		<content:encoded><![CDATA[<p>I give execution permissions on my procedure to one user with windows authentication (with db_owner permissions on my data base and ssis admin on the SSISDB) and he can run the procedure without problem, but just the db_onwer role is the problem,</p>
<p> I tried run my stored procedure with clause with execute as OWNER and when I try run the stored procedure I get an error:</p>
<p>&#8220;The server principal user is not able to access the database ssisdb under current security context&#8221;</p>
<p>I have read about is and the problem is because need db across chaining I suppose because one db is mydtabase where are sp and the other database is SSISB (this for use execute as context) I followed the steps by db cross chaing but give an error because the sid of my master is diferent that sid of mydatabase and ssisdb  database and I can&#8217;t change this&#8230;.</p>
<p>The main problem is that with db_onwer role run ok, but i need the user can&#8217;t see and take control of all objects in my data base, the user only must can run this sp!!</p>
<p>someone idea?</p>
<p>Thanks for all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-2332</link>
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 26 Jun 2013 19:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-2332</guid>
		<description><![CDATA[Hey Armando,

Thats right, executing SSIS packages requires a Windows Authentication, thats because SSIS is a separate service (from SQL Server) and requires access to system resources outside of the SQL Server environment (essentially to run the DTExec.exe for executing packages and any other system resources the package itself requires).

To resolve the issue, you&#039;ll need to give the &#039;&lt;b&gt;Domain\user&lt;/b&gt;&#039; account execution rights over the SSIS project.

You can do that by mapping the user to the SSISDB database (on the &lt;b&gt;Public&lt;/b&gt; user-group), then right-click on the SSIS project folder (in the catalog) and select &lt;b&gt;Properties&lt;/b&gt;, then add the &#039;&lt;b&gt;domain\user&lt;/b&gt;&#039; details.

There is an excellent article by Ke Yang on &lt;a href=&quot;http://blogs.msdn.com/b/mattm/archive/2012/03/20/ssis-catalog-access-control-tips.aspx&quot; rel=&quot;nofollow&quot;&gt;managing execution rights on the SSIS catalog&lt;/a&gt; that am sure you&#039;ll find helpful!

Let me know how you get on!! :)

Cheers.]]></description>
		<content:encoded><![CDATA[<p>Hey Armando,</p>
<p>Thats right, executing SSIS packages requires a Windows Authentication, thats because SSIS is a separate service (from SQL Server) and requires access to system resources outside of the SQL Server environment (essentially to run the DTExec.exe for executing packages and any other system resources the package itself requires).</p>
<p>To resolve the issue, you&#8217;ll need to give the &#8216;<b>Domain\user</b>&#8216; account execution rights over the SSIS project.</p>
<p>You can do that by mapping the user to the SSISDB database (on the <b>Public</b> user-group), then right-click on the SSIS project folder (in the catalog) and select <b>Properties</b>, then add the &#8216;<b>domain\user</b>&#8216; details.</p>
<p>There is an excellent article by Ke Yang on <a href="http://blogs.msdn.com/b/mattm/archive/2012/03/20/ssis-catalog-access-control-tips.aspx" rel="nofollow">managing execution rights on the SSIS catalog</a> that am sure you&#8217;ll find helpful!</p>
<p>Let me know how you get on!! <img src="http://thinknook.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armando C</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-2306</link>
		<dc:creator><![CDATA[Armando C]]></dc:creator>
		<pubDate>Tue, 25 Jun 2013 18:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-2306</guid>
		<description><![CDATA[Hi man, me again:

More in concret i need wich one user (sql login prefferly)  with minimun rigths in the database can execute ssis througth store procedure, (my stored procedure wich i programed) i have read about the accouns for execute catalog view&#039;s of ssis&#039; catalog and say only can execute this catalogs Windows authentification account because &quot;SSIS catalog needs the windows authenticated tocontrol the package acces during run time&quot; do you have any idea for can make it?

thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi man, me again:</p>
<p>More in concret i need wich one user (sql login prefferly)  with minimun rigths in the database can execute ssis througth store procedure, (my stored procedure wich i programed) i have read about the accouns for execute catalog view&#8217;s of ssis&#8217; catalog and say only can execute this catalogs Windows authentification account because &#8220;SSIS catalog needs the windows authenticated tocontrol the package acces during run time&#8221; do you have any idea for can make it?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armando C</title>
		<link>http://thinknook.com/execute-ssis-via-stored-procedure-ssis-2012-2012-08-13/#comment-2289</link>
		<dc:creator><![CDATA[Armando C]]></dc:creator>
		<pubDate>Mon, 24 Jun 2013 23:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://thinknook.com/?p=667#comment-2289</guid>
		<description><![CDATA[Yes man, the problem was the datatype in the procedure... but now i have another problem...

I have created my procedure and run without problems with my user my user is sysadmin in the database  and ssis_admin in SSISDB but I need another user with basic permisions (reader or less) and with this user can execute my procedure, I tried 2 options  the first i grant execution on the sp to my &quot;basic user&quot; and when I tried run the package say me:


&quot;Msg 27123, Level 16, State 1, Procedure create_execution, Line 38
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.

(1 row(s) affected)
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.
Msg 27123, Level 16, State 1, Procedure start_execution, Line 32
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.
&quot;
after  this I add on my store procedure the clause EXECUTE AS OWNER when I did it and try run the stored with the &quot;basic user&quot; show me a message wich say:

The server principal &quot;domain\user&quot; is not able to access the database &quot;SSISDB&quot; under the current security context.

Something idea?


Thanks!!]]></description>
		<content:encoded><![CDATA[<p>Yes man, the problem was the datatype in the procedure&#8230; but now i have another problem&#8230;</p>
<p>I have created my procedure and run without problems with my user my user is sysadmin in the database  and ssis_admin in SSISDB but I need another user with basic permisions (reader or less) and with this user can execute my procedure, I tried 2 options  the first i grant execution on the sp to my &#8220;basic user&#8221; and when I tried run the package say me:</p>
<p>&#8220;Msg 27123, Level 16, State 1, Procedure create_execution, Line 38<br />
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.</p>
<p>(1 row(s) affected)<br />
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36<br />
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.<br />
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36<br />
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.<br />
Msg 27123, Level 16, State 1, Procedure set_execution_parameter_value, Line 36<br />
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.<br />
Msg 27123, Level 16, State 1, Procedure start_execution, Line 32<br />
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.<br />
&#8221;<br />
after  this I add on my store procedure the clause EXECUTE AS OWNER when I did it and try run the stored with the &#8220;basic user&#8221; show me a message wich say:</p>
<p>The server principal &#8220;domain\user&#8221; is not able to access the database &#8220;SSISDB&#8221; under the current security context.</p>
<p>Something idea?</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/


Served from: thinknook.com @ 2026-04-15 01:05:46 by W3 Total Cache
-->