Hello,
At first, check the SSRS project settings (right-click your project -> Properties), especially the target server URL (should look like http://localhost/ReprotServer for the default intallation settings; you have probably set the value to http://localhost/Reprots). Then you need to have...
In SQL Server 2005 or higher, you can write a CLR stored procedure and save the data using .NET framework classes. You can also use Integration Services (replacement of DTS) to export the data into .csv file. Start Import/Export Wizard from Object Explorer in the Management Studio and follow...
I would definately use UNPIVOT operator, because it geneates better execution plan:
SELECT Customer, Month, Amount
FROM
(SELECT Customer, [Month 1], [Month 2], [Month 3]
FROM pvt) p
UNPIVOT
(Amount FOR Month IN
('Month 1', 'Month 2', 'Month 3')
) AS unpvt
As Denny wrote...
If you want to access file system in SQL Server 2000 (or do other operation outside of SQL Server), you can generaly use an extended procedure. It is coded in C according to given API (see books online for more information). You can also use SQL Server Agent to run a job with Operating System...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.