Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Best way to get data out of SQL Server

Hello,

I have a VB.NET app that uses SQL Server. The front-end is an ASP.NET app
that runs at an ISP. I would like to let my client pull up an ASPX page,
request some pre-canned query where they perhaps supply a transaction date
range for my job table, and then I want to run that query against SQL
Server. All of this stuff I can do with no problem...but the result of the
query isn't to be displayed on a web page. I would like to have it saved on
the requesters machine in a format that excel can utilize.

Ideally after the query runs I would like it to prompt the user with a file
dialog that asks them what filename would they like to save it to.

What is the best approach to take on this? Does the data have to be
formatted a particular way, comma delimited, xml?

Thanks...Paul



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Best way to get data out of SQL Server

Excel 2002 and later can read xml. I don't believe earlier versions can.

Comma delimited (CSV) should be readable by excel and would be the easiest.

--
Regards,
Tom Ogilvy

"paul reed" wrote in message
...
Hello,

I have a VB.NET app that uses SQL Server. The front-end is an ASP.NET app
that runs at an ISP. I would like to let my client pull up an ASPX page,
request some pre-canned query where they perhaps supply a transaction date
range for my job table, and then I want to run that query against SQL
Server. All of this stuff I can do with no problem...but the result of the
query isn't to be displayed on a web page. I would like to have it saved

on
the requesters machine in a format that excel can utilize.

Ideally after the query runs I would like it to prompt the user with a

file
dialog that asks them what filename would they like to save it to.

What is the best approach to take on this? Does the data have to be
formatted a particular way, comma delimited, xml?

Thanks...Paul





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Best way to get data out of SQL Server

Hi paul,

Very good question!

Based on my experience on this issue, I'd suggest you can check this KB
article from Microsoft.com which will help you a lot on this issue. Please
go to:
317719 HOW TO: Export Data in a DataGrid on an ASP . NET WebForm to
Microsoft
http://support.microsoft.com/?id=317719

In addition, Microsoft Office 2000 supports HTML/XML as a native file
format which means that Excel 2000 supports XML.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import data into SQL Server from Excel Rachel[_2_] Excel Discussion (Misc queries) 1 October 27th 08 02:35 AM
How to import data from SQL Server amit Excel Discussion (Misc queries) 0 January 15th 07 05:35 AM
SQL Server -- Bulk Insert from Excel to SQL Server Madhan Excel Discussion (Misc queries) 0 December 12th 06 03:08 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"