Monday, 31 January 2011

Adding Pipe Delimited Option for Report Rendering in SSRS

One of my customers created a report used to send data to another system via a file transfer. The problem is the transfer is not direct and requires a process to convert the CSV to pipe delimited. The system receiving the data has a format it expects that isn’t configurable and must be pipe delimited. Reporting Services comes with the ability to export a comma delimited out of the box, but that’s the only text file option by default.

After a little chat with Mr. Google I found that adding a new data rendering extension in SSRS is quite simple and any text file output you may want is just a change to the reportserver.config file away.

Create Temp table in SQL Server

Example:


select LogID, Severity, Timestamp, Win32ThreadId, Title
into #Start_time
from log(nolock)
where Message like '%ValidateAndActivate%'
and Severity='Start'
and timestamp between '2011-01-29' and '2011-01-30'