dbTalk Databases Forums  

Create Excel From SQL Server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Create Excel From SQL Server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christian Duffett
 
Posts: n/a

Default Create Excel From SQL Server - 10-13-2005 , 09:41 AM






I'm trying to create an easy way for end users to get an excel
spreadsheet with data from a SQL Server database. I can easily do this
myself with DTS through Enterprise Manager but then I have to be
involved each time the user requests updated data. Is this a simple
thing to do? I'm using ASP (not ASP .net) and SQL Server 2000. Thanks
in advance.


Reply With Quote
  #2  
Old   
SQL
 
Posts: n/a

Default RE: Create Excel From SQL Server - 10-13-2005 , 10:09 AM






look at http://support.microsoft.com/kb/q189198/ or change the MIME type

http://sqlservercode.blogspot.com/



"Christian Duffett" wrote:

Quote:
I'm trying to create an easy way for end users to get an excel
spreadsheet with data from a SQL Server database. I can easily do this
myself with DTS through Enterprise Manager but then I have to be
involved each time the user requests updated data. Is this a simple
thing to do? I'm using ASP (not ASP .net) and SQL Server 2000. Thanks
in advance.



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Create Excel From SQL Server - 10-13-2005 , 01:58 PM



DTS may not be the best way forward here. You may be better off using
Excel automation through ASP.Net. Difficult to say without more info.

Allan

"Christian Duffett" <duffett (AT) gmail (DOT) com> wrote


Quote:
I'm trying to create an easy way for end users to get an excel
spreadsheet with data from a SQL Server database. I can easily do this
myself with DTS through Enterprise Manager but then I have to be
involved each time the user requests updated data. Is this a simple
thing to do? I'm using ASP (not ASP .net) and SQL Server 2000. Thanks
in advance.


Reply With Quote
  #4  
Old   
Dave
 
Posts: n/a

Default RE: Create Excel From SQL Server - 10-13-2005 , 02:04 PM



Using ASP, you can use this at the top of your asp page.

<%
Response.ContentType = "application/vnd.ms-excel"
%>

The query result will be rendered in XL format.

"Christian Duffett" wrote:

Quote:
I'm trying to create an easy way for end users to get an excel
spreadsheet with data from a SQL Server database. I can easily do this
myself with DTS through Enterprise Manager but then I have to be
involved each time the user requests updated data. Is this a simple
thing to do? I'm using ASP (not ASP .net) and SQL Server 2000. Thanks
in advance.



Reply With Quote
  #5  
Old   
duffett@gmail.com
 
Posts: n/a

Default Re: Create Excel From SQL Server - 10-13-2005 , 02:44 PM



I actually found a real clean way to do it here
http://support.microsoft.com/kb/q189198/

i made a couple changes so that I wouldn't have a bunch of random files
on the webserver though and added
<% Response.ContentType = "application/vnd.ms-excel" %>
at the top and instead of writing to the file simply had
response.write's. If anyone else wants more info let me know.


Reply With Quote
  #6  
Old   
synopsis
 
Posts: n/a

Default Re: Create Excel From SQL Server - 10-14-2005 , 04:10 PM



With a Excel automation you must install a Excel Server Component.

Why dont'you try to create a SYLK file format ?
They are several articles on the web which described this format.

Else you can create a XML spreadsheet.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> a écrit dans le message de news:
urdlSgC0FHA.2884 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
DTS may not be the best way forward here. You may be better off using
Excel automation through ASP.Net. Difficult to say without more info.

Allan

"Christian Duffett" <duffett (AT) gmail (DOT) com> wrote in message
news:1129214514.863861.221540 (AT) f14g2000cwb (DOT) googlegroups.com:

I'm trying to create an easy way for end users to get an excel
spreadsheet with data from a SQL Server database. I can easily do this
myself with DTS through Enterprise Manager but then I have to be
involved each time the user requests updated data. Is this a simple
thing to do? I'm using ASP (not ASP .net) and SQL Server 2000. Thanks
in advance.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.