A quick overview of how I'm getting Excel file data uploaded to our SQL Server:
1) A batch FTP process sends a copy of the spreadsheet to the server - I runt this .bat file with a Shell command.
2) A stored procedure on the server, using the FTP spreadsheet, then updates the SQL database. This stored procedure is setup and is accessed through the "Data-Get External Data-New Database Query - where I have a query setup in the "Choose Data source" Dialog box already.
What I'm trying to do is have this "Choose Data source" dialog box pop up so the user only has to select the query and hit OK. Better yet, I was hoping the VBA code could execute this query and the user would only need to key in their server password.
Hope this makes sense. We don't have to pull any data back to the Excel file. Thanks in advance!
Joe
1) A batch FTP process sends a copy of the spreadsheet to the server - I runt this .bat file with a Shell command.
2) A stored procedure on the server, using the FTP spreadsheet, then updates the SQL database. This stored procedure is setup and is accessed through the "Data-Get External Data-New Database Query - where I have a query setup in the "Choose Data source" Dialog box already.
What I'm trying to do is have this "Choose Data source" dialog box pop up so the user only has to select the query and hit OK. Better yet, I was hoping the VBA code could execute this query and the user would only need to key in their server password.
Hope this makes sense. We don't have to pull any data back to the Excel file. Thanks in advance!
Joe