OceanDesigner
Programmer
I have been reading the many post on exporting tables to Excel in this and the SQL Server Programming forums. I have found a number of ways to do this:
1) Read in the recordset, write the Excel file with vbscript, and then redirect to the new Excel file.
2) Read in the recordset, write the tables in html or xml and view via the Excel aplet.
3) Execute a prescribed DTS package and redirect to the newly written file.
Since the set of data elements I want to export will always be the same, I think using a DTS package is the most convenient method. So the only thing I need to figure out is how to actually execute the DTS package from a web page. To connect to the database, I use the following connection string.
'OPEN OLE DB CONNECITON
Set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "Provider=sqloledb;Data Source=Thomas;" &_
"Initial Catalog=Customer;User ID=jeff;Password=five5
conn.Open
I will call the DTS Package "ExportData". How do I modify this connection string and then run the DTS Package?
Thanks, Jeff
1) Read in the recordset, write the Excel file with vbscript, and then redirect to the new Excel file.
2) Read in the recordset, write the tables in html or xml and view via the Excel aplet.
3) Execute a prescribed DTS package and redirect to the newly written file.
Since the set of data elements I want to export will always be the same, I think using a DTS package is the most convenient method. So the only thing I need to figure out is how to actually execute the DTS package from a web page. To connect to the database, I use the following connection string.
'OPEN OLE DB CONNECITON
Set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "Provider=sqloledb;Data Source=Thomas;" &_
"Initial Catalog=Customer;User ID=jeff;Password=five5
conn.Open
I will call the DTS Package "ExportData". How do I modify this connection string and then run the DTS Package?
Thanks, Jeff