I am familiar with VBScript and can successfully export data in VB to an Excel file. I am now playing around with DTS packages and am a newbie. I have a stored procedure which contains the data I want. No parameters are passed into this sproc. I want to take the results of the sproc and export it into excel. I would like to set up my excel file dynamically as I have done in VB. I am trying to accomplish this by using Active X Scripting. I am not sure how I go from the Execute of my stored procedure to passing the result set similar to my SQL recordset:
I have seen some code that talks about the data pump and accessing the parent property. Is this what I need to do?
Code:
.Range((.Cells(varCurRow, 1)), (.Cells(varCurRow, 1))).CopyFromRecordset rstDetail