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
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SqlServer no dupes 25 34
optimize stored procedure 6 27
SQL - Use results of SELECT DISTINCT in a JOIN 4 20
SQL invalid column name 5 13
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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

772 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