Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Export to Excel with dynamic name

$
0
0
Hello, is it possible to use variable names to name a file in SSIS?  Basically, for security reasons, we hold most of our data on a server not connected to our web front end. But what we want is that if client 030 wants a record of all their transactions, they can request it. The backend server will frequently check the db that stores that bit, and if it sees the request, it will spit out an excel file with the name of the file 030_request.xls. We then will have a script that will password protect zip that file, and place the file onto a server the web server can reach in a folder based on the name of the file to the left of the _.  So in the case above, folder 030.  Then the person can connect and download their file from their folder.  But for this to work, I need a way of exporting from SQL based on the client ID field in a db and have that ID field be a part of the name of the Excel file. It does not look possible in what I have seen so far, I have created a quick and dirty package but I don't see any locations to use variables from the db itself.  Thanks for any ideas, and if you know of a better solution than SSIS please let me know that. 

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>