![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am going to have a stored procedure that will call and execute an SSIS package. I was going to use the DTexec utilility but have not found out how to call that utility from a stored procedure. Is the the right approach or is there a better way? Is there an alternate way to call an SSIS package from a stored procedure? any help is appreciated. Thanks. Dave Christman |
#3
| |||
| |||
|
|
Hello hedgracer, I am going to have a stored procedure that will call and execute an SSIS package. I was going to use the DTexec utilility but have not found out how to call that utility from a stored procedure. Is the the right approach or is there a better way? Is there an alternate way to call an SSIS package from a stored procedure? any help is appreciated. Thanks. Dave Christman The xp_cmdshell extended stored procedure allows you to command line programs The only other alternative is to create a job, and then call sp_start_job. |
#4
| |||
| |||
|
|
Darren - I have setup a sp to execute dtexec using xp_cmdshell and this is working great as long as the user is in the sysadmin db role. I understand that if a non-sysadmin user executes my sp, SQL Server 2005 will attempt to use the cmd shell proxy account - if it doesn't exist the exec will fail. I have created a local Windows account and used this account for the cmd shell proxy credential. When the non-sysadmin user attempts to execute my sp, the proc returns the following error. What am i missing? Microsoft OLE DB Provider for SQL Server error '80040e09' EXECUTE permission denied on object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'. "Darren Green" wrote: Hello hedgracer, I am going to have a stored procedure that will call and execute an SSIS package. I was going to use the DTexec utilility but have not found out how to call that utility from a stored procedure. Is the the right approach or is there a better way? Is there an alternate way to call an SSIS package from a stored procedure? any help is appreciated. Thanks. Dave Christman The xp_cmdshell extended stored procedure allows you to command line programs The only other alternative is to create a job, and then call sp_start_job. |
#5
| |||
| |||
|
|
Hello SSM, The error message looks pretty clear to me, how about granting permissions on xp_cmdshell to your user (the one making the connection to SQL Server to call xp_cmshell), have you done that? This is a bad idea though from a security perspective though, please be aware of that. Darren Darren - I have setup a sp to execute dtexec using xp_cmdshell and this is working great as long as the user is in the sysadmin db role. I understand that if a non-sysadmin user executes my sp, SQL Server 2005 will attempt to use the cmd shell proxy account - if it doesn't exist the exec will fail. I have created a local Windows account and used this account for the cmd shell proxy credential. When the non-sysadmin user attempts to execute my sp, the proc returns the following error. What am i missing? Microsoft OLE DB Provider for SQL Server error '80040e09' EXECUTE permission denied on object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'. "Darren Green" wrote: Hello hedgracer, I am going to have a stored procedure that will call and execute an SSIS package. I was going to use the DTexec utilility but have not found out how to call that utility from a stored procedure. Is the the right approach or is there a better way? Is there an alternate way to call an SSIS package from a stored procedure? any help is appreciated. Thanks. Dave Christman The xp_cmdshell extended stored procedure allows you to command line programs The only other alternative is to create a job, and then call sp_start_job. |
#6
| |||
| |||
|
|
Thank you Darren - I appreciate the response. Yes, I thought the error msg was pretty clear too and did grant execute permissions to xp_cmdshell for the application login. This did not work either. And like you, I am concerned with the security implications of doing so. Let me take this from a different approach. Is there a means to use the SSIS/DTS object model, .NET, and CLR integration to execute a SSIS package from a stored procedure? "Darren Green" wrote: Hello SSM, The error message looks pretty clear to me, how about granting permissions on xp_cmdshell to your user (the one making the connection to SQL Server to call xp_cmshell), have you done that? This is a bad idea though from a security perspective though, please be aware of that. Darren Darren - I have setup a sp to execute dtexec using xp_cmdshell and this is working great as long as the user is in the sysadmin db role. I understand that if a non-sysadmin user executes my sp, SQL Server 2005 will attempt to use the cmd shell proxy account - if it doesn't exist the exec will fail. I have created a local Windows account and used this account for the cmd shell proxy credential. When the non-sysadmin user attempts to execute my sp, the proc returns the following error. What am i missing? Microsoft OLE DB Provider for SQL Server error '80040e09' EXECUTE permission denied on object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'. "Darren Green" wrote: Hello hedgracer, I am going to have a stored procedure that will call and execute an SSIS package. I was going to use the DTexec utilility but have not found out how to call that utility from a stored procedure. Is the the right approach or is there a better way? Is there an alternate way to call an SSIS package from a stored procedure? any help is appreciated. Thanks. Dave Christman The xp_cmdshell extended stored procedure allows you to command line programs The only other alternative is to create a job, and then call sp_start_job. |
![]() |
| Thread Tools | |
| Display Modes | |
| |