Solved

change owner of ssis package

Posted on 2009-07-14
24
611 Views
Last Modified: 2013-11-10
Is there a way that you can change the owner of an ssis package in sql 2008 - preferably on the command line.
0
Comment
Question by:david_32
  • 12
  • 12
24 Comments
 
LVL 14

Expert Comment

by:rob_farley
ID: 24865870
Two questions:
1/ What are you trying to achieve by doing this?
2/ Where does the package live (file system / MSDB)?

For example... if you're trying to make it so that someone else can see the secret info about a package, then changing the owner won't help.

Rob
0
 

Author Comment

by:david_32
ID: 24866188
I trying to change the owner of the package so that it complements the ProtectionLevel with EncyptSensitiveWithUserKey. The owner I want to change to will be a common user that all users can use to run jobs that can run any package a user has priv to run and will setup as a sql agent proxy. The developers don't want me to use Encrypt with password because it slows down the development time and and I am having trouble with ServerStorage because when I use dtutil it is telling me that  I cannot use Serverstorage because the msdb database it not at the right version. I think this is because I have sql 2005 and 2008 on the server and dtutil is getting mixed up on which msdb database it should use.

The package lives \MSDB\Data Collector.


thanks

0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24867305
You should be able to tell dtutil which instance you need to talk to...
0
 

Author Comment

by:david_32
ID: 24874733
I am I run
dtutil /SourceServer <servername>/SQL <package> /ENCRYPT SQL;<package>;5 /Q

it does not work.
0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24875066
Can you put the instance slash the other way around?

dtutil /SourceServer <servername>\SQL <package> /ENCRYPT SQL;<package>;5 /Q

And let me know what the error is?

Rob
0
 

Author Comment

by:david_32
ID: 24875188
/SQL  is a switch for dtutil to specify a location of the package that is why I put <package> afterwards.

Could not save package <packagename> because of error 0xC001401C.
Description: Storing or modifying packages in SQL Server requires the SSIS runti
me and database to be the same version. Storing packages in earlier versions is
not supported.

I have sql 2005 + 2008 on the box. I am not using ssis 2005 and I am running dtutil from the path of the 2008 binary




0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24875756
Oh, sorry... I was thinking you meant the name of your instance was SQL, from there no being a space betwen <servername> and the slash.

Is your \DTS\Binn\msdtssvr.ini.xml pointing to the right MSDB database?

Rob
0
 

Author Comment

by:david_32
ID: 24875966
Yes it is .. I thought that was the answer but no luck :)
0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24875978
Ok... so it's pointing to the 2008 instance?

And when you're in SQL Config Manager, you can see Integration Services 10.0?

Are you specifying the dtutil path explicitly? Like... .\dtutil.exe, not just dtutil (thinking that even though you're in the right folder, it may be preferring a different dtutil if there's one in the path).

Rob
0
 

Author Comment

by:david_32
ID: 24875997
yes .. I tried running dtutil both ways cd to the right folder and also running
<path>:\dtutil .......



0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24876010
Can you stop all the 2005 services and see what happens?
0
 

Author Comment

by:david_32
ID: 24876028
actually I already tried that  and it did the same thing.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 14

Expert Comment

by:rob_farley
ID: 24876033
Can you get the package out (using SSMS), and then use /FILE instead?
0
 

Author Comment

by:david_32
ID: 24876060
you can't use file package storage if you want to use the ServerStorage Protection level on the package (that is the 5 bit of /ENCRYPT SQL;<package>;5 in my dtutil command)
0
 

Author Comment

by:david_32
ID: 24876062
also it is not a solution for me as I want to store the packages in the database.
0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24876069
Yeah - I was thinking maybe you could pull the package into the file system, make your changes, and then push them back in.
0
 

Author Comment

by:david_32
ID: 24876083
not a bad idea except I can't change the protectionlevel to serverstorage  when the package is a file - I tried it already.
0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24876115
Are you doing this on the local server, or remotely?

(if remotely, can you try it on the local server)

Just that the error message about versions suggests that there's a discrepancy between client tool and server product somewhere.
0
 

Author Comment

by:david_32
ID: 24876212
on the local server. If you run the command remotely it will work as long as there is a 2008 SQL server also on the client machine.

0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24876239
Really makes it sound like the dtutil process is for a different version...

I'm clutching at straws now.
0
 

Author Comment

by:david_32
ID: 24876266
I agree.. before this thread we were considering removing sql 2005 from the current problem box so that 2008 is by itself. I probably am going to take that course of action.
0
 
LVL 14

Expert Comment

by:rob_farley
ID: 24876320
Do you have another environment that just contains SQL 2008, that you could use to test it?
0
 

Author Comment

by:david_32
ID: 24892252
I have 2008 on my client machine .. I could probably test with that.
0
 
LVL 14

Accepted Solution

by:
rob_farley earned 500 total points
ID: 24892283
Yeah - terrific. Let me know how it goes, and then we can move on with this.

Rob
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now