Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create a xls File on Server without Excel?

hi i have to export some databases to a xls File with DTS and VBA on
MIcrosoft SQL Server 2000.
in Dts it is not very difficult but i have to do this dynamicly. So
have to create a new xls File with Scripting FileSystemObject
but on the server is no Excel Application.
u know how i can do this?
i have mayby a solution but then i have to delete the value of the fil
before a job, otherwise the file will be bigger and bigger.
any ideas?
th

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Create a xls File on Server without Excel?

Milosz wrote ...

hi i have to export some databases to a xls File with DTS and VBA on a
MIcrosoft SQL Server 2000.
in Dts it is not very difficult but i have to do this dynamicly. So i
have to create a new xls File with Scripting FileSystemObject
but on the server is no Excel Application.
u know how i can do this?


You can use the Microsoft OLE BD provider for Jet to dynamically
create an Excel workbook. Specifying a non-existent but valid path,
workbook name and Excel 'table' in a SELECT..INTO query results in it
being created. See:

Microsoft Knowledge Base Article - 295646
HOWTO: Transfer Data from ADO Data Source to Excel with ADO
http://support.microsoft.com/default...;en-us;Q295646

However, I have so far been unable to do the same when using the SQL
Server provider and specifying a non-existent Excel element using
either the OPENROWSET or OPENDATASOURCE functions.

Jamie.

--
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
recovering deleted excel file from server Jason Excel Discussion (Misc queries) 3 March 30th 06 01:40 AM
Run Excel file on a Server Jon Girsch Excel Discussion (Misc queries) 0 January 18th 06 04:08 PM
Script to save Excel file to the server. raj41977 Excel Discussion (Misc queries) 3 December 8th 05 02:48 PM
How do I use a server name in an Excel chart file path? Zimtok5 Charts and Charting in Excel 1 October 26th 05 02:08 AM
Save Excel file at server? Erlend Stokkedal Excel Programming 1 May 12th 04 09:24 PM


All times are GMT +1. The time now is 05:19 AM.

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"