Avatar of mason3325
mason3325
 asked on

DTS package using SQL Server 2005

I need to create a DTS package using SQL Server 2005 in order to move data, not the spreadsheet itself, from an Excel spreadsheet that is located on one server into an Excel spreadsheet on a different server. I have no clue where to start. Once the DTS package is created, I will have the package set up as a SQL Job and have it run daily.
Microsoft SQL ServerMicrosoft SQL Server 2005

Avatar of undefined
Last Comment
nmcdermaid

8/22/2022 - Mon
rickchild

To get started I would go into management studio and use the import wizard.

right click database
all tasks
import data

Follow the wizard through, and before you finish the last step you would tick the option to save as a package.  Save this as a file, and then you can open the saved pakage in Business Intelligence Studio

This will be the first part of your package.

If you want to get the output part, then simply run an export, and save this.
Then combine the packages in the studio.
rickchild

DTS in SQL2005 is now referred to as SSIS - SQL Server Integration Services.
mason3325

ASKER
Where does the saved package get saved to?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
nmcdermaid

Do you want to copy the entire Excel file across servers, or do you want to grab data from the source spreadsheet and append it to the destination one?

To copy a file you just issue a COPY command. You can do that within a SQL Agent job (no need for SSIS)

rickchild

You can choose to save the package in the server, or as a file.

If you save as a filename this is easier, as you can then just open up the file directly in BIDS
mason3325

ASKER
I want to grab data from the source spreadsheet and insert the data into the destination one. The destination one will need to be cleared daily, and then the new data will be added daily.

I have saved the package as a file, but now when I try and open/retrieve the file, I can not find it anywhere. Any idea where the file is saved to?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rickchild

When you ticket the box to "Save SSIS Package" did you choose file system?

If you did then it asks you for the path.
If you left the default which is "SQL Server" then it is saved within the SQL Installation and you can't find the file.

I think the confusion here is between packages deployed to the server and packages saved as a dtsx file.  It is possible to save SSIS as a dtsx file and run directly from the file.  But it is also possible to "save" the file into the SQL Server, in this case it is stored in the database and can only be accessed through management studio.
mason3325

ASKER
Is there a way I can use the Import Data function of SQL Server 2005, and specify the table that I want the data to be imported into? Right now it is creating a new table every time called Data$. I want the data to be imported into an existing table, so no create statement would be used.
nmcdermaid

>> I want to grab data from the source spreadsheet and insert the data into the destination one. The destination one will need to be cleared daily, and then the new data will be added daily.

So why can't you just copy the entire spreadsheet file over? (i.e. no ETL required) Is there other data in other worksheets that remains static?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
mason3325

ASKER
I need to copy over a folder with Excel spreadsheets, then copy the data that are in those spreadsheets into another spreadsheet. I do not need the data to be copied over into SQL Server. Can I just copy the spreadsheets over to the server using XCopy? If so, is there a way to write a SQL Job Agent to XCopy the files from one server location to another server location? If so, how would I write the DTS package to XCopy the files?
ASKER CERTIFIED SOLUTION
nmcdermaid

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.