Link to home
Start Free TrialLog in
Avatar of TBSupport
TBSupport

asked on

SSRS: Options for Exporting

Hello:

Although it might seem more logical to use SSIS instead of SSRS for this project, I'm going to use SSRS.

Ultimately, what I'd like to do--once I have my report created--is to export the data from SSRS to a text file.

I know that there is no such direct export available.  So, I will export to Excel and then save the Excel spreadsheet as a text file.

Now, the SSRS report is going to be pulling from at least one view in the SQL database.  And, that view is going to format fields to contain column lengths.  Retaining these column lengths is very important.

So, if I export to Excel and then save as text, will the column length formatting be saved?

Thanks!

TBSupport
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TBSupport
TBSupport

ASKER

Update:  Since posting this, I found the following:

http://seanmkrause.com/2012/10/09/sql-server-2008-r2-tab-exports/

Ultimately, I want to be able to export from SSRS directly to a text file.  Aside from having to rename the extension to .txt, the URL that I just pasted above sounds like I can do so.

Specifically, the programming for one of report's views in SQL contains measurements for most of the fields as shown here:

SELECT
'MED' as company,
CAST('000HEADER' as CHAR(15)) as rectype,
CAST('' as CHAR(91)) as filler,
CAST('02.00' as CHAR(5)) as version,
CAST('16860' as CHAR(5)) as id,
CAST('EMPLOYER' as CHAR(20)) as type,
CAST('I' as CHAR(1)) as code,
CAST('' as CHAR(5)) as source_service,
CAST('' as CHAR(1)) as empl_id_only,
CAST('' as CHAR(1)) as multiple_work_times

Update 2:  I just tried the instructions mentioned in the URL article that I pasted.  It did allow for the exporting directly to a tab-delimited file.  So, I saved this .csv file as a .txt file.  And, it saved my SQL fixed column lengths!  Good.  That's what I wanted.  

TBSupport