Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Execute one package for user

Author  Topic 

dmaxj
Posting Yak Master

174 Posts

Posted - 2010-06-08 : 13:11:18
I have a user that needs/wants to execute a package whenever needed. I have considered having him use 'dtexecui' to execute the package. How can I allow him to use 'dtexecui' for his package only. I do not want him to see the other packages?

Regards

jimmycjen
Starting Member

15 Posts

Posted - 2010-06-08 : 16:33:01
There maybe several solutions but one way I know is to call it from VB program.
Go to Top of Page

dmaxj
Posting Yak Master

174 Posts

Posted - 2010-06-09 : 13:08:59
I was trying to provide a similar way that the user was used to executing. This was a migration from SQL 2000 (dtsrun) to SQL SQL 2008 (dtsexecui). I have since moved on to using EXECUTE AS in a Stored Procedure. I now get and error that 'cannot use special principal sa' when altering my proc. Any clues - code follows:

ALTER PROCEDURE [dbo].[OX_Imp]
WITH EXECUTE AS 'sa'
AS
BEGIN

EXEC msdb.dbo.sp_start_job N'OX_Imp'; -- sql agent job that calls ssis package.

END

The proc works when I replace 'sa' with my domain account, but I don't want to use that account - sa is enabled and server is in mixed mode (windows and sql accounts).

Regards
Go to Top of Page
   

- Advertisement -