jenlion
IS-IT--Management
- Nov 13, 2001
- 215
I started this message on the general SQL programming forum and was referred here...
I am working with an application that allows me to run custom VB Scripts. I need a script to take an excel sheet, load it into a SQL table, and then run a stored procedure in the database.
However, I can't give the users running this application any special permissions to the database (like bulk insert and all that goes along with it). And I can't go row-by-agonizing-row because there may be a few hundred thousand items on the excel sheet.
It's been suggested that I write a vbscript that:
-- saves the given excel sheet to a predefined network share
-- calls a stored procedure that:
- Calls an SSIS package that imports the data from excel to my table
- then executes the transactions I need against the data in that table.
I don't want to hard-code a name/password into my script anywhere, but I'd be OK with doing it into an SSIS pkg. I'm not very familiar with SSIS though (I just know you could do that with DTS). Does this make sense? I have created an SSIS pkg that imports from fixed excel to a sql table... now I just need to know how to execute this package from a stored procedure when the stored procedure is called by a user that doesn't have bulk insert permission.
make sense? Doable? what do I need to do? Thanks...
I am working with an application that allows me to run custom VB Scripts. I need a script to take an excel sheet, load it into a SQL table, and then run a stored procedure in the database.
However, I can't give the users running this application any special permissions to the database (like bulk insert and all that goes along with it). And I can't go row-by-agonizing-row because there may be a few hundred thousand items on the excel sheet.
It's been suggested that I write a vbscript that:
-- saves the given excel sheet to a predefined network share
-- calls a stored procedure that:
- Calls an SSIS package that imports the data from excel to my table
- then executes the transactions I need against the data in that table.
I don't want to hard-code a name/password into my script anywhere, but I'd be OK with doing it into an SSIS pkg. I'm not very familiar with SSIS though (I just know you could do that with DTS). Does this make sense? I have created an SSIS pkg that imports from fixed excel to a sql table... now I just need to know how to execute this package from a stored procedure when the stored procedure is called by a user that doesn't have bulk insert permission.
make sense? Doable? what do I need to do? Thanks...