ssis-2012

SSIS Package with Dynamically creating Excel destination is not working from SQL Server Jobs

拟墨画扇 提交于 2019-12-13 08:47:02
问题 I'm currently working on a requirement to get data from sql server into Excel destination. I used the exact method from this link " https://sqljunkieshare.com/2012/02/28/how-to-create-and-map-excel-destination-dynamically-in-ssis/ " Except the Dynamical excel sheet name (Doesn't work, so removed the dynamical sheet naming and using a static name for all excel workbook) Condition is : To get a set of distinct ID's from a view and should create an excel sheet for each ID and load the data from

Feedback requested for SSIS Master package design - Running a bunch of Sub-Packages

坚强是说给别人听的谎言 提交于 2019-12-13 08:39:06
问题 Overall, I am looking for feedback regarding two different design options of running a master package. I have one package that Agent calls that runs a bunch of packages that process data (I think we are up to about 50 now). The original design was to group packages into smaller chunks called directorates which call the actual packages. Sample below: A few perceptions I see (and experienced) with this approach is that: 1. Every package has to open (even if it is unnecessary to run ie no file

SSIS lookup transform alternatives?

﹥>﹥吖頭↗ 提交于 2019-12-13 05:26:19
问题 I need to transfer about 11 million rows daily from one database to another. The source table is about a half a billion rows total at this point. I was using the "get everything since ?" method, using the max in the destination as the ?, but the maintenance of the source is kind of funky. They keep going back to fill holes and my method isn't working. The standard Lookup transform takes hours to run. Pragmatic's TaskFactory has an Upsert component, but it's not in this project's budget. Is

Dynamically Creating Excel table through SSIS

北战南征 提交于 2019-12-12 12:43:22
问题 Using Execute SQL Task in SSIS - created Excel file- contains multiple columns and different data types.The issue here is INT/Money columns are displaying as a text columns in Excel even though excel table is created with Int/Money datatype I have tried to used double precision,CY datatypes but nothing worked out. CREATE TABLE `Employer` ( `MEMBERSHIP NUMBER` VARCHAR(30), `RETIREE #` VARCHAR(12), `COPID` CHAR(6), `PERSON LAST NAME` VARCHAR(150), `FIRST NAME` VARCHAR(150), `RETIREE PLAN` CHAR

SSIS Jobs execution issue through batch file

自闭症网瘾萝莉.ら 提交于 2019-12-12 06:29:36
问题 Hi I've migrated all my packages from 2012 to 2014 and created Jobs through batch files. But when I'm executing the packages through command file jobs executed successfully command prompt syntax: C:\Program Files\Microsoft SQL Server\120\DTS\Binn>dtexec.exe /f "C:\CRPac kages\Accounts.dtsx" But same path I've copied into a batch file and when executes nothing happens. Please let me know the solutions. 来源: https://stackoverflow.com/questions/44279514/ssis-jobs-execution-issue-through-batch

FTP Task: Unable to send files using “FTP Connection Manager” in Visual Studio 2012

柔情痞子 提交于 2019-12-12 06:28:05
问题 I inconsistently get the following error when uploading files to a ftp server: FTP Task: Unable to send files using "FTP Connection Manager" The port is 21 and it is set to passive mode. The task succeeds 80% of the time it is executed; the occasional failures are random and I'm looking for the best way to troubleshoot the problem. Is there any way to get more descriptive error information via visual studio? 回答1: I'm sure you have resolved it by now. But for the future reference, I'll answer

SSIS connection string based on a variable

别来无恙 提交于 2019-12-12 06:22:54
问题 This is a follow up to my question: SSIS connection parameter based on parameter/variable I now can see how to construct a variable from other variables, but it does not appear possible to then use that variable as the ConnectionString for the Connection. That appears to only allow variables. How can I use my newly concatenated variable as the ConnectionString? 回答1: Ok, I can answer my own question now. It is a different location than if you want to use a parameter to set the ConnectionString

creating job with ssis step using tsql

自作多情 提交于 2019-12-12 04:55:14
问题 I would like to create sql server job using stored procedure and I can't seem to get it right. Integration Service Catologs -> SSIDB -> Cat1 ->Projects->999->Packages->999.dtsx In step 1 properties of below script on Package tab "Server: and Package:" are empty, I need to populate these as well as set 32bit to true Below is what I got, thanks in advance EXECUTE msdb..sp_add_job @job_name = 'Job 1', @owner_login_name = SUSER_NAME(), @job_id = @JobId OUTPUT EXECUTE msdb..sp_add_jobserver @job

SSIS connection parameter based on parameter/variable

↘锁芯ラ 提交于 2019-12-12 04:17:00
问题 I am building an SSIS project to import ~40 CSV files. I am creating one package for each import and a master package to run them all. The CSV files all live in the same file location, but that location may change. What I would like to do is set a project-level parameter for the file location and construct the connection string for each package's connection by concatenating that project-level parameter with the file name. Is this possible? 回答1: You concatenate variables in SSIS with

Prevent SSIS for creating an empty csv file at destination

∥☆過路亽.° 提交于 2019-12-12 03:24:50
问题 I created a SSIS to export to a csv file I don't wan't my SSIS to create an empty file if there is no data. How can I achieve this ? Thanks, 回答1: Are you suggesting that when your project will create the CSV if there are no rows? If that is the case - keep a row count. If row count = 0 at the end the delete the file. 来源: https://stackoverflow.com/questions/37889054/prevent-ssis-for-creating-an-empty-csv-file-at-destination