package references - when loading to server storage

Posted on 2011-02-22
Last Modified: 2013-11-10
one of the package (in the visual studio solution) has reference to a text (.sql file) for some tsql code, in a task. we can run the package from visual studio. Now if I want to move it to the server storage (storing it in msdb),so that it can be called from a job, other than moving the dtsx file to the server (msdb), how should I update the reference for the misc text that is called/attached to tasks.

Question by:anushahanna
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 22

Accepted Solution

8080_Diver earned 333 total points
ID: 34956477
My first thought is , "Why are you doing storing the T-SQL script in a flat file?  Why not put the T-SQL in a Stored Proc or as a view?  Or, failing those, why not put it in the Data Source component or, at the very least, a Variable in the SSIS package?"


Author Comment

ID: 34956547
hmm.. i guess it could. this was convenient to keep them seperated in files, and easier for developer to just edit just the files they need to from windows explorer, without opening BIDS.

So, apart from the methods you mentioned, there is no alternative to move it to the server in a way it can be run from a job, right?
LVL 22

Assisted Solution

8080_Diver earned 333 total points
ID: 34956596
Well, you could put the T-SQL in a databaqse column in a special table for thaqt purpose but, since I seriously avoid the use of flat files for any controlling elements of my SSIS packages, I don't know of any other options.

If you put the T-SQL into stored procs, they don't have to open up the package in BIDs; they just have to open the SP and edit it.
LVL 15

Assisted Solution

derekkromm earned 167 total points
ID: 34957847
you can setup a package configuration and choose the file connection's filepath as something you want to configure.

from there, you simply need to update the configuration with the filepath if/when it changes

Author Comment

ID: 34964686
Thanks for the helpful idea.

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

710 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