Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2011, 10:09 AM
Authorized User
 
Join Date: Nov 2010
Posts: 63
Thanks: 3
Thanked 0 Times in 0 Posts
Default Export SQL table to excel

Hello
I'm looking for a way to export data in a SQL table to excel and have it saved locally or sent by email.
Any idea how to do this?
Thanks
 
Old September 18th, 2011, 11:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You have a number of options including DTS / SSIS (SQL Server Integration Services) for exporting the data from the server (as a nightly process for exampe) or by exporting to HTML that looks like an Excel file from an ASP.NET page if you need it as part of the user's interaction. You can also use third party components to generate true Excel files. It all depends on what you're trying to achieve and how.

But since this isn't related to my book, you're better off posting this in a general SQL or ASP.NET category here at p2p.wrox.com. This way you'll attract more viewers. If you decide to post there, be sure to provide more information about what you're trying to accomplish.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
avidan (September 18th, 2011)
 
Old September 18th, 2011, 11:53 AM
Authorized User
 
Join Date: Nov 2010
Posts: 63
Thanks: 3
Thanked 0 Times in 0 Posts
Default Thanks!

Imar, thanks for your answer.
Alex





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export the HTML Table data to excel. Piyush Doraya JSP Basics 0 July 19th, 2011 04:34 AM
Export Table data into an Excel SpreadSheet hewstone999 Access VBA 0 March 3rd, 2008 07:00 AM
Export Access table to a pre-formatted Excel file mccoy Access VBA 2 May 25th, 2007 08:04 AM
Export Mircosoft Excel Data to Access Table tiyyob Excel VBA 0 January 11th, 2006 06:19 AM
Export Table from Access to Excel aramchan Access VBA 2 July 12th, 2004 03:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.