ssis-2012

Start SSIS Package from Script Task “InProcess”

怎甘沉沦 提交于 2020-08-09 11:58:27
问题 I want to start a child SSIS package from Script Task and do it in scope of main SSIS package execution. Like it is done by SSIS Execute Package Task when you set ExecuteOutOfProcess property equal to false . However, tutorials I have found, starting from Microsoft Docs etc, are creating a new execution. This is equivalent to setting ExecuteOutOfProcess property equal to true . In that case you do not inherit all project configurations, parameters from your current execution instance, and

Start SSIS Package from Script Task “InProcess”

人盡茶涼 提交于 2020-08-09 11:58:04
问题 I want to start a child SSIS package from Script Task and do it in scope of main SSIS package execution. Like it is done by SSIS Execute Package Task when you set ExecuteOutOfProcess property equal to false . However, tutorials I have found, starting from Microsoft Docs etc, are creating a new execution. This is equivalent to setting ExecuteOutOfProcess property equal to true . In that case you do not inherit all project configurations, parameters from your current execution instance, and

querying ssisdb to find the name of packages

血红的双手。 提交于 2020-07-18 12:35:09
问题 i was querying the ssis catlog to find out the name of all the packages in the catalog. There are only 6 packages in the Folder1 project,but the query gives 9 records 1. SELECT P.NAME FROM SSISDB.internal.projects PRJ INNER JOIN SSISDB.internal.packages P ON P.project_version_lsn=PRJ.object_version_lsn WHERE PRJ.NAME='Folder1' Does it show the deleted packages from the project as well. 回答1: They aren't deleted, that's part of the historical tracking. You likely wanted a query more similar to

querying ssisdb to find the name of packages

强颜欢笑 提交于 2020-07-18 12:34:52
问题 i was querying the ssis catlog to find out the name of all the packages in the catalog. There are only 6 packages in the Folder1 project,but the query gives 9 records 1. SELECT P.NAME FROM SSISDB.internal.projects PRJ INNER JOIN SSISDB.internal.packages P ON P.project_version_lsn=PRJ.object_version_lsn WHERE PRJ.NAME='Folder1' Does it show the deleted packages from the project as well. 回答1: They aren't deleted, that's part of the historical tracking. You likely wanted a query more similar to

SSIS File System Task Error while copying files between servers

无人久伴 提交于 2020-07-08 04:16:18
问题 I can copy files between two servers say Server A and Server B manually and I have permissions to folders on either side. I am using File System Task to Copy files. When my Source and Destination are within the Server the Package works fine in visual studio as well as SSISDB. When my Source and Destination are in different Servers the Package works fine in visual studio but package fails in SSISDB. It is saying access is denied. My Account is mapped to SSISDB. Any idea to solve this issue.

delete emp table data using ssis package

梦想与她 提交于 2020-06-17 12:56:19
问题 I want delete the data in the target server(postgres) tables data using ssis package. database : postgres server Table : emp in execute sql task :scriptis: delete from emp and connection used odbc when i run the executesql task in ssis package if emp table have data then its working fine and i am getting the error when emp table donot have data. [Execute SQL Task] Error: Executing the query "delete from emp usin..." failed with the following error: "Error HRESULT E_FAIL has been returned from

delete emp table data using ssis package

送分小仙女□ 提交于 2020-06-17 12:56:03
问题 I want delete the data in the target server(postgres) tables data using ssis package. database : postgres server Table : emp in execute sql task :scriptis: delete from emp and connection used odbc when i run the executesql task in ssis package if emp table have data then its working fine and i am getting the error when emp table donot have data. [Execute SQL Task] Error: Executing the query "delete from emp usin..." failed with the following error: "Error HRESULT E_FAIL has been returned from

Implement Send Mail Task with multiple tries in case if its failed to send mail

扶醉桌前 提交于 2020-02-04 22:18:14
问题 I have implemented a Send Mail Task in my package which sends a mail notification on Success or Failure. The send mail task fails sometimes due to the below error. Task failed: Send Mail Task with Success Error Code: -1073548540 ErrorMessage: An error occurred with the following error message: "Failure sending mail. System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. System.Net.Sockets.SocketException: An

SSIS expression builder: convert date/time to Epoch timestamp

北城余情 提交于 2020-01-22 00:22:11
问题 I'm trying to build an expression to convert a date/time parameter to an Epoch timestamp that will be used in a Url's parameter string. I figured that I would try GetDate() first, then substitute the actual parameter ( @[$Package::endingDate] ). This syntax: DATEDIFF("s", "19700101", GETDATE() ) produces: The function "DATEDIFF" does not support the data type "DT_WSTR" for parameter number 2. The type of the parameter could not be implicitly cast into a compatible type for the function. To

Exclude specific Sub Folders

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 05:32:04
问题 I got a package that runs through a folder and it's sub folders to get client data. The agreement has changed and now the client will post his data in different folder name every time. I was wondering if I can do a foreach loop on the main folder and exclude specific folders like archive . I don't have knowledge in writing scripts so I was wondering if SSIS can do that without the script. 回答1: Using Execute Script Task Get List of - filtered - files using an Execute Script Task before