?
Solved

package references - when loading to server storage

Posted on 2011-02-22
5
Medium Priority
?
350 Views
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.

thanks
0
Comment
Question by:anushahanna
[X]
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
5 Comments
 
LVL 22

Accepted Solution

by:
8080_Diver earned 1332 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?"



0
 
LVL 6

Author Comment

by:anushahanna
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?
0
 
LVL 22

Assisted Solution

by:8080_Diver
8080_Diver earned 1332 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.
0
 
LVL 15

Assisted Solution

by:derekkromm
derekkromm earned 668 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
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34964686
Thanks for the helpful idea.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

719 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