August 26, 2010 at 8:02 am
I'm very new to SSIS and trying to copy rows from a sql table to an Excel spreadsheet, but not having much luck getting any of the rows to copy. I have an OLE DB Source task setup with a SQL script and an Excel Destination task. I added a data flow task to connect them.
When I do a "Preview" on the OLE DB Source Editor Connection Manager, I'm getting 2 rows, so I know there is data from my SQL selection. I added a Data Viewer on the data flow path between my 2 tasks to see what I'm getting after the OLE DB Source task completes and see that there are no rows. Can someone PLEASE tell me what I'm doing wrong? I'm wondering if there's some setting on the OLE DB task because obviously that's where my problem is. I have searched the forum, but can't find anything on this.
I appreciate any help you can give me because I'm feeling totally frustrated.
August 26, 2010 at 9:18 am
Libby, you might find it easier to set up an Export-to-Excel package by using "Export Data" from SSMS, and then in that wizard tell it to save a package. When you look at the data flow task, you'll most likely see a data transformation task to convert columns to nvarchar (unicode), which is what the Excel drivers use. Anyway, using the wizard the first few times will get you familiar with the process a bit easier.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 26, 2010 at 10:20 am
Thanks for your reply Wayne. I've created DTS packages quite a bit in sql 2000, but SSIS and SSMS is new to me, so it took me a little while to figure out how to do this, but finally did. I created the SSIS package by rt-clicking on the database and selecting Tasks/Export data, which took me into the wizard. After running through each of the steps, I checked the boxes to run immediately and saved the package. I didn't know where to go to find the SSIS package in SSMS, but finaly found where I need to connect to Integration Services. I did that and selected the server to which the database is on. I'm still not able to find my package. I see a list of the following folders, but there's either nothing in them or when I try to expand the folder, I get a "Login Failed" error.
Running Packages
Stored Packages
August 26, 2010 at 10:22 am
ooops hit post too soon...
Here's the remaining folder under Stored Packages. All of the MSDB folders give me the error.
File System (empty)
MSDB115
MSDB215
MSDB315
MSDB325
Do I need to have our DBA give me security access to view this information?
Thanks for your help.
August 26, 2010 at 10:23 am
...Oh and by the way, when the package ran, it still gave me the same results... 0 rows exported.
August 30, 2010 at 2:25 am
Libby,
Why do you need a Script component for data transfer...
All you require is a OLEDB source and Excel destination as per the problem statement you described
Raunak J
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply