How To Rename SQL Server 2010 Import Package in msdb Database

How can I rename a SQL Server 2010 Import package in the msdb database?
LVL 16
Chuck WoodAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BlueYonderCommented:
The process will require copying the job then deleting the previous.  The instructions for copying and deleting are on
http://www.mssqltips.com/sqlservertip/1428/import-export-copy-and-delete-ssis-packages/.  The easier way is to use SQL Business Intelligence Development Studio.
0
Chuck WoodAuthor Commented:
Unfortunately, I do not have the SQL Business Intelligence Development Studio and I can only access the server through SQL Server Management Studio. I there a way to do it with an SQL query?
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
How did you create the import package? Using Import/Export wizard?
And how are you calling it?
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Chuck WoodAuthor Commented:
Yes, I used the Import/Export wizard. I tried to call it ImportPsPayrollTrans but forget the caps lock was on and it was saved as iMPORTpSpAYROLLTRANS. If I could delete the improperly named package, I can easily recreate the package with a new name.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
I see. Then you need to change the SSIS Package name and update all jobs that is calling that package:
USE msdb
GO

UPDATE sysssispackages
SET name='ImportPsPayrolltrans'
WHERE name='iMPORTpSpAYROLLTRANS'

UPDATE sysjobsteps
SET command=REPLACE(command,'iMPORTpSpAYROLLTRANS','ImportPsPayrolltrans')
WHERE subsystem='SSIS'

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chuck WoodAuthor Commented:
Perfect answer. Thank you so much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.