1. Open SQL Server Business Intelligence Studio (Visual Studio branded
differently)
2. Create SSIS package
3. Begin point = SQL Server view
4. End point = CSV file
That is the easiest way and you can programmatically call it for
repeatability.
I should also add that I want the result to be a .csv file saved on the file
system in a virtual directory I created in our site with write capabilities.
I should also add that I want the result to be a .csv file saved on the file
system in a virtual directory I created in our site with write capabilities.
--
David
DavidC said:
Is there an easy way in asp.net to dump out a comma-delimited file froman
SQL view or stored proc? Thanks.
As Alexey says, instead of writing your CSV to the response stream, you can
just save the text to a file.
Use the System.IO namespace, you can just use File.WriteAllText(<filename>,
<data>)
You could get the data using LINQ to SQL and just format it on the fly.
That's probably the route I'd take.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.