Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp and excel

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
is it possible to get create an excel on the fly with asp. ie could someone come onto a webpage press a button and get an excel spreadsheet with the required data from an SQL dbase.

 
Yes.
You can use the Data Transformation Services.
Under local Packages start a new package.
add a MS OLE DB provider-object as source SQL data and
a MS Excel-object (from the left) for the target data.
Click both objects (with shift) and add a workflow: 'Transform data'.


br
Gerard
(-:
 
Once I have created the package how do I go about calling it from an asp page?
 
dim oDTS
set oDTS = CreateObject("DTS.package")
oDTS.LoadFromSQLserver <server name>,&quot;sa&quot;, &quot;&quot;,,,,&quot;,<package name>
oDTS.execute
set oDTS = nothing


Maybe you need to change id/password!

br
Gerard
(-:
 
dim oDTS
set oDTS = CreateObject(&quot;DTS.package&quot;)
oDTS.LoadFromSQLserver <server name>,&quot;sa&quot;, &quot;&quot;,,,,,&quot;<package name>
oDTS.execute
set oDTS = nothing


Maybe you need to change id/password!

br
Gerard
(-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top