Solved

Creating SSIS packages with SQL Server Business Intelligence Dev Studio

Posted on 2014-02-03
9
287 Views
Last Modified: 2016-02-10
I am working on developing an SSIS package that will grab data from a number of views on a source database and copy that data to destination server, truncating the destination tables and inserting new data from source database views.

For that purpose I used Business Intelligance Studio to create an Integration Services Project and then I added SSIS Import/Export wizard.

I have a couple of questions:

1) Is using wizard the best way for my purpose?

2) When creating the SSIS package, I use my development machine but later will need to put this package on two different servers: QA server and production. How do i go about doing that?

3) When moving package from my development machine onto a  QA server and then to production server, the name of the source and target databases will change. How do I handle the change?

What I mean is on my dev machine, while developing the package, for test purposes I use "server1" as source server name and "localost" as the target server name, but on my QA server I will need to use "Server03" as the source server name and "ServerQA" as the target server. And on Production server the names will also differ. Hope my explanations are clear. How do I modify the names in my SSIS package?
0
Comment
Question by:YZlat
  • 5
  • 4
9 Comments
 
LVL 12

Assisted Solution

by:Tony303
Tony303 earned 500 total points
ID: 39830938
Hi,

1) Is using wizard the best way for my purpose?

Yeah, I sometimes use the wizard, this may flesh out the package for you, but you'll probably need to tweak it along the way too.

2) When creating the SSIS package, I use my development machine but later will need to put this package on two different servers: QA server and production. How do i go about doing that?

In the solution where you have been developing the package you'll see the .dtsx file.
I generally open SSMS in the Integration Services mode and then add the package to the server by Importing Package from file.

3) When moving package from my development machine onto a  QA server and then to production server, the name of the source and target databases will change. How do I handle the change?

You can achieve this by using an SSIS Package Configuration File.


Each one of these steps I believe will spawn many other questions however.
It is quite an involved process to get a whole SSIS package up and running.

T
0
 
LVL 35

Author Comment

by:YZlat
ID: 39831004
Thank you for your fast response!

>>I generally open SSMS in the Integration Services mode and then add the package to the server by Importing Package from file.

I am new to this so could you please elaborate?
0
 
LVL 12

Accepted Solution

by:
Tony303 earned 500 total points
ID: 39831111
When you open SQL Server Management Studio, you get presented with a logon screen.
Most likely you'd see "Database Engine" in the Server type.

Drop down the list and select Integration Services.

The rest will all be dependant on the setup and rights assigned to your login...
As you'll know this can be a bit of a minefield.

T
0
 
LVL 35

Author Comment

by:YZlat
ID: 39842080
I changed dropdown to Integration services and it is asking me for a server name. Would it be my QA Server name?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 12

Assisted Solution

by:Tony303
Tony303 earned 500 total points
ID: 39842844
I hope I'm interpreting where you are up to already.

So, I assume you have a package created and tested in BIDS.
So the deployment to QA is next.

Therefore, you need to import the package onto your QA system that has SSIS running. I assume this is the "ServerQA" machine.

T
0
 
LVL 35

Author Comment

by:YZlat
ID: 39857265
I will try it as soon as I fix up my configuration file
0
 
LVL 35

Author Comment

by:YZlat
ID: 39860270
OK, I followed your instructions and logged in ro ServerQA via Management Studio (changing Database Engine to Integration Services).

There are two folders: Running Packages (empty) and Stored Packages(has 2 subfolders File System and MSDB).  I expanded Stored Packages and then File System, created new folder called "SSIS" and right clicked on it and selected Import package.

Then it prompted me for some information. I selected File System as package location and navigated to .dtsx file. So now the package is imported to the QA server.

Next thing is my package connections ar setup to use destination database on my dev server. Please instruct me on how to change it to QA server information.

I tried creating deployment package and modifying info in configuration file but when I ran the package on QA server, it uses the configuration file from Dev machine "the package is attempting to configure from the XML file "C:\...\.dtsConfig". And it fails since I changed the configuration file to read from tnsnames entry existing on the QA server, which is different from the one on development machine. How do I ensure my package reads tnsnames.ora on QA server?
0
 
LVL 35

Author Closing Comment

by:YZlat
ID: 39868322
I guess you lost interest in the question. Thanks for your help so far
0
 
LVL 12

Expert Comment

by:Tony303
ID: 39868337
Sorry, I did and I didn't lose interest.
I have never used config files, I had been looking in my spare time for a good guide on them.
Spare time is rare these days with work, kids and study for SQL 2012 exams...sigh!.

Sorry again.

T
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

863 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

27 Experts available now in Live!

Get 1:1 Help Now