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

Data conversion fails when trying to import values with . precision

$
0
0

I have the following csv file :

EmployeeId,PayRate12,2.5015,5.3356,7.28

I am trying to store data in a SQL Server table, like below :

Using Conversion Component :

enter image description here

"The value could not be converted because of a potential loss of data."

Using Derived Column :

ISNULL(PayRate)?(DT_R4)0.00:(DT_R4)PayRate

 SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.

The "Derived Column" failed because error code 0xC0049063 occurred, and the error row disposition on "Colonne dérivée.Entrées[Entrée de colonne dérivée].Colonnes[PayRate]" specifies failure on error.

I am not able to find which is the correct type to use to store the PayRate in my situation.


Error installing SQL Server Integration Services. Could not open key: UNKNOWN\Components\. Verify that you have sufficient access to that key.

$
0
0

I am getting this error when i attempt to install SQL Server 2016 SP2 CU13 on a Windows 2008R2 server that has Visual Studio Enterprise 2015 installed on it (and many SQL Server related products).  

Error installing SQL Server Integration Services
Could not open key: UNKNOWN\Components\DA42BC89BF25F5BD0AF18C3B9B1A1EE8\34F8A5C2BF8F6D14FA7E13DF424A4A2B.   Verify that you have sufficient access to that key, or contact your support personnel.
Error code: 1402

I dont recall even installing Intgration Services on this server, but i guess its possible we did.  Regardless, how do i resolve?  I spent an hour resetting permissions on various keys in regedit, but everytime i fix one, another one is shown as not being accessible due to permissions.  I feel like this is going to be an endless effort to reset permissions on all those keys in the registry.  Is there another way to fix registry key permissions for Integration Services? Can i do some sort of repair or uninstall/reinstall (wjthout breaking or messing anything else up)?  Please advise.


Is it possible to lower the logging to the SSIS catalog?

$
0
0

Is it possible to reduce the level of logging written to the SSIS catalog database for specific (or all?) packages? In our DEV and TEST environments we run packages far more frequently than we would in PROD and consequently we're generating vast quantities of messages of the form:

<task>:Validation has started.
<task>:Validation is complete.
<task>: Validation phase is beginning.
<task>:Start, 8:46:35 AM.
<task>:Finished, 8:46:35 AM, Elapsed time: 00:00:00.000.

etc.

With a package consisting of many tasks performed in a loop I've got 459,000 messages I don't really need. It would be great if this could be reduced to the warning/error level and ditch the information level.

Is this possible?

How to stop an Object from changing data type in an SQL Script Task?

$
0
0

Hi all,

I am currently trying to create an SSIS script that does the following:
1. Use two given variables to perform an SQL SELECT and get the two other variables in the row
2. Iterate over the rows that come out of the SQL script using a For Each loop.

The SQL script is as follows:

SELECT        Customer, AddressNo
FROM            ShippingLog
WHERE        (Destination = ?) AND (Source = ?)

With Destination and Source configured as inputs. I have Result Set running into User::Object, with Result Name 0 assigned. The For Each loop uses a From Variable Enumerator on User::Object. 

The issue I am running into that the Object changes into a String after executing the SQL task with a singular value. I need access to both values in the Data Flow task within my For Each loop. Does anyone have any idea what I can do to accomplish this? I've been trying to google some answers, but most were either in older SSIS versions with stuff I don't seem to have in Visual Studio 2013, or had no result.

Thanks in advance for any help!

ODBC - rows per batch limit - int16

$
0
0

Hi,

I'm using an ODBC destination component to load a table in batch mode. When I enter anything greater than 35000 rows per batch, it gives me the error 'value was either too large or too small for an int16'. Can anyone explain why I'm getting this error?

Roland

SQL agent job running SSIS package error

$
0
0

Hi All, 

I'm getting below error while running SQL jobs which is triggering a ssis package (ispac). 

Message
Executed as user: "". Microsoft (R) SQL Server Execute Package Utility  Version 13.0.5026.0 for 64-bit  Copyright (C) 2016 Microsoft. All rights reserved.    Started:  8:36:55 AM  Package execution on IS Server failed. Execution ID: "", Execution Status:2.  To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report  Started:  8:36:55 AM  Finished: 4:39:08 AM  Elapsed:  158529 seconds.  The package execution failed.  The step failed.

Please let me know if you have any idea. 

Thanks,

Vikram 


Download and Load Medical ICD codes

$
0
0

Has anyone had the pleasure of actually going out to the CMS.gov web site and getting the latest ICD-10 Codes...downloading the ICD-10 codes...and then loading that data to your own Database Table? Maybe even utilizing SSIS to do it? I would appreciate anyone that has actually done this to just nudge me in the right direction as to how to go about doing it. I know I have done NPI, Physician codes, before...but now I need to do ICD-10 codes. Maybe point me in the right direction as to where to go and get the latest, good, most reliable download file.

Thanks for your review and am hopeful for a reply.

SSIS - Package could not load intermittent failures

$
0
0

Hi Everyone =) 

We are running on SQL Server 2008 R2 and are developing SSIS packages in BIDS. Packages are imported to the server into msdb where they are run in production through SQL Agent Jobs. 


We have a master package which runs all of our main jobs. This package makes use of CozyRoc additional SISS operators. It essentially runs lots of child packages based upon different configurations. These packages get called using an Execute Package task. This setup works fine but we sometimes get intermittent failures on the SQL Agent jobs setup to run. These happen randomly a few times and then disappear for months (after we get desperate and reboot the Server several times). Rebooting the Server sometimes seems to fix and issue and sometimes doesn't. 

Examples of errors include:


1. Failed to load the package \xx\xx from SQL Server "yy". Make sure the package exist on the SQL Server and you have the correct credential to access it. Description: Error 0xC0014062 while preparing to load the package. LoadFromSQLServer method has failed. 


2. Could not load package "\xx\yy" because of error 0x80070020. The process cannot access the file because if it being used by another process.

3. Cannot create an instance of the XML Document Object Model. MSXML may not be registered. Could not load package \xx\yy because of error. Description: Class not registered. 


I have read a lot about people saying example 1.  can be related to permissions. However I am confused because the problem is very intermittent so runs most of the time and then will fail. if it was permissions I would expect it to fail all the time. I wonder if someone deployed the package 

Has anyone encountered intermittent failures and had any success in debugging them? 



Error The metadata could not be determined because the statement 'abc' is not compatible with the statement 'abc'

$
0
0
Greetings, I have an ssis package that I am testing on an upgrade from SQL 2008 R2 instance to a SQL 2014 instance (db still in 2008 r2 compatibility), and on one stored procedure call it gets the error: 
The metadata could not be determined because the statement 'abc'  is not compatible with the statement 'abc' 
Description: Unable to retrieve column information from the data source. Make sure your target table in the database is available. 

the sp is called from an oledb data source using sqlncl11 and it works fine on the 2008 r2 sql server. I have found some similar errors but they are all related to using temp tables, which this proc does not. The scaled down sql is shown below, basically what it is doing is selecting a differnt part number if a condition exists, otherwise just select the data. I have tried putting a select initially in the proc to send the right data types by using a IF 1 = 2 BEGIN SELECT cast(null as char(5)) as part,...END. but that has not worked. I ran a Trace and see where it is failing after a call to sp_describe_first_resultset so that is the source of the issue. I have seen where a fix is to use a "with result sets" statement and define all the columns but that is going to potentially mean a lot of code changes for this upgrade and opening up every single package potentially which I would like to avoid. I could also change the proc to insert results into a temp table/variable but again code changes. Appreciate any info as to why this is happening now and any suggestions on how to resolve. I would like to understand why this is happening on this proc so I can try to determine where else this will happen in the 100+ packages I have to upgrade. Thanks


IF EXISTS (SELECT 1  FROM [dbo].tbl1 WHERE part IN ('12345'))
BEGIN
IF NOT EXISTS (SELECT 1  FROM [dbo].tbl1 WHERE part IN ('45678'))
BEGIN
select cast('12345' as char(5)) AS part, description, part_number
FROM [dbo].tbl1 WHERE part IN ('45678')

UNION

select part, description, part_number
FROM [dbo].tbl1 ptmn
LEFT OUTER JOIN dbo.tbl2 pm
ON pm.part = ptmn.part
WHERE pm.part IS NULL
END
ELSE
begin
select part, description, part_number
FROM [dbo].tbl1 ptmn
LEFT OUTER JOIN dbo.tbl2 pm
ON pm.part = ptmn.part
WHERE pm.part IS NULL
END
END
ELSE
BEGIN
select part, description, part_number
FROM [dbo].tbl1 ptmn
LEFT OUTER JOIN dbo.tbl2 pm
ON pm.part = ptmn.part
WHERE pm.part IS NULL
end

Collation Conflict within SSIS Package

$
0
0
Hello everyone, 
I am having an issue with an SSIS package, there is a collation conflict. 

The error being report is: "[Execute SQL Task] Error: Executing the query "DECLARE @SecurityDatabaseNVARCHAR(128) SET @Secur..." failed with the following error: "Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "Latin1_General_CS_AS" in the equal to operation."." 

I'm using Microsoft SQL Server Standard (64-bit) Version 13.0.5698.0. I am also using Microsoft SQL Server Data Tools for Visual Studio 2017 (SSDT) Version 15.9.18 to manage/create SSIS packages. 

The server collation is Latin1_General_CS_AS. 

The SSIS package has a basic objective. Collect all logins for a given server, then collect the object permissions associated with that login per database on that server. Once obtained populated the result into a table for review. The package itself has three"Foreach Loop Containers". The first obtains servers of interest, the second obtains logins for that server and the third obtains the permissions by database for each login. 

The database causing the conflict has collation Latin1_General_CS_AS although this has been changed recently from Latin1_General_CI_AS. I have since checked the database in question and realised they have not altered the tables/column to collation to Latin1_General_CS_AS, it still remains Latin1_General_CI_AS. They have since changed the tables/columns to the desired collation of Latin1_General_CS_AS but thought I would share for completeness. 

The underlying T-SQL in the last "Foreach Loop Container" is... If i run these scripts within management studio it completes without error.

CREATE TABLE ##SecurityPermissions
([CollectionDate]SMALLDATETIMENOT NULL
,[ServerInstance]SYSNAMECOLLATE database_defaultNULL
,[PrincipalName]NVARCHAR(128)COLLATE database_defaultNOT NULL
,[PrincipalType]NVARCHAR(20)COLLATE database_defaultNOT NULL
,[DatabaseName]NVARCHAR(128)COLLATE database_defaultNOT NULL
,[ObjectType] NVARCHAR(20)COLLATE database_defaultNOT NULL
,[ObjectName] NVARCHAR(128)COLLATE database_defaultNOT NULL
,[PermissionObject]NVARCHAR(256)COLLATE database_defaultNOT NULL
,[CreationDate]SMALLDATETIMENOT NULL
,[ModifiedDate]SMALLDATETIMENOT NULL
,[ScriptType] NVARCHAR(256)COLLATE database_defaultNOT NULL
);

DECLARE @SecurityDatabaseNVARCHAR(128) 
SET @SecurityDatabase= ?

DECLARE @SecurityPrincipal1NVARCHAR(128)
SET@SecurityPrincipal1= ?

DECLARE @SecurityPrincipal2NVARCHAR(128)
SET@SecurityPrincipal2= ' ''' + @SecurityPrincipal1 + ''' '


EXECUTE(
'USE ' 
+ @SecurityDatabase 

'

SET NOCOUNT ON;

DECLARE @SecurityPrincipal3NVARCHAR(50)
SET@SecurityPrincipal3= ' + @SecurityPrincipal2 + '

DECLARE @PrincipalNameVARCHAR(128)
DECLARE @PrincipalTypeVARCHAR(20)
DECLARE @DatabaseNameVARCHAR(128)
DECLARE @ObjectTypeVARCHAR(20)
DECLARE @ObjectNameVARCHAR(128)
DECLARE @PermissionObjectVARCHAR(256)
DECLARE @CreationDateSMALLDATETIME
DECLARE @ModifiedDateSMALLDATETIME
DECLARE @ScriptTypeVARCHAR(256)

DECLARE tableCursor CURSOR FAST_FORWARD READ_ONLY FOR
SELECT DISTINCT -- To Handle Object Privileges
   USER_NAME(dp.grantee_principal_id)AS [PrincipalName]
  ,LOWER(dpr.type_desc)AS [PrincipalType]
  ,DB_NAME()AS [DatabaseName]
  ,LOWER(ao.type_desc)AS [ObjectType]
  ,OBJECT_NAME(dp.major_id)AS [ObjectName]
  ,CASE WHEN ao.type IN (''P'') 
    THEN 
    CASE WHEN (dp.state_desc COLLATE database_default) = ''GRANT_WITH_GRANT_OPTION'' 
THEN ''GRANT'' 
ELSE (dp.state_desc COLLATE database_default) 
END 
+ '' EXECUTE ON '' + QUOTENAME(DB_NAME()) + ''.'' + QUOTENAME(s.name) + ''.'' + QUOTENAME(ao.name) + '' TO '' + QUOTENAME(USER_NAME(dp.grantee_principal_id))
+ CASE state WHEN ''W'' 
THEN '' WITH GRANT OPTION'' 
ELSE '''' 
END 
    WHEN ao.type IN (''V'',''U'') 
    THEN 
    CASE WHEN (dp.state_desc COLLATE database_default) = ''GRANT_WITH_GRANT_OPTION'' 
THEN ''GRANT'' 
ELSE (dp.state_desc COLLATE database_default) 
END 
+ '' SELECT ON '' + QUOTENAME(DB_NAME()) + ''.'' + QUOTENAME(s.name) + ''.'' + QUOTENAME(ao.name) + '' TO '' + QUOTENAME(USER_NAME(dp.grantee_principal_id))
+ CASE state WHEN ''W'' 
THEN '' WITH GRANT OPTION'' 
ELSE '''' 
END 
    WHEN ao.type IN (''TF'',''FN'')
    THEN  
    CASE WHEN (dp.state_desc COLLATE database_default) = ''GRANT_WITH_GRANT_OPTION'' 
THEN ''GRANT'' 
ELSE (dp.state_desc COLLATE database_default) 
END 
+ '' REFERENCES ON '' + QUOTENAME(DB_NAME()) + ''.'' + QUOTENAME(s.name) + ''.'' + QUOTENAME(ao.name) + '' TO '' + QUOTENAME(USER_NAME(dp.grantee_principal_id))
+ CASE state WHEN ''W'' 
THEN '' WITH GRANT OPTION'' 
ELSE '''' 
END 
    ELSE ''''
    ENDAS [PermissionObject]
  ,ao.create_dateAS [CreationDate]
  ,ao.modify_dateAS [ModifiedDate]
  ,''ObjectPermissions''AS [ScriptType]
FROM sys.all_objectsAS ao
JOIN sys.database_permissionsAS dp  ON ao.object_id= dp.major_id
JOIN sys.schemasAS s   ON ao.schema_id= s.schema_id
JOIN sys.database_principalsAS dpr ON dp.grantee_principal_id= dpr.principal_id
WHERE ao.object_id = dp.major_id AND ao.schema_id = s.schema_id AND dp.grantee_principal_id <> 0 AND dp.grantee_principal_id <> 2
AND ao.type IN (''P'',''V'',''U'',''TF'',''FN'') AND USER_NAME(dp.grantee_principal_id) = @SecurityPrincipal3
UNION ALL 
SELECT DISTINCT -- To Handle Column Privileges
   USER_NAME(dp.grantee_principal_id)AS [PrincipalName]
  ,LOWER(dpr.type_desc)AS [PrincipalType]
  ,DB_NAME()AS [DatabaseName]
  ,LOWER(ao.type_desc)AS [ObjectType]
  ,OBJECT_NAME(dp.major_id)AS [ObjectName]
  ,''GRANT '' + cp.privilege_type + '' ON '' + QUOTENAME(DB_NAME()) + ''.'' + QUOTENAME(cp.table_schema) + ''.'' + QUOTENAME(cp.table_name) + '' ('' + QUOTENAME(cp.column_name) + '') TO '' + QUOTENAME(cp.grantee) + '''' + CASE WHEN IS_GRANTABLE = ''YES'' THEN '' WITH GRANT OPTION'' ELSE '''' END 
AS [PermissionObject]
  ,ao.create_dateAS [CreationDate]
  ,ao.modify_dateAS [ModifiedDate]
  ,''ColumnPermissions''AS [ScriptType]
FROM sys.all_objects  AS ao
JOIN sys.database_permissions  AS dp  ON ao.object_id= dp.major_id
JOIN sys.schemas  AS s   ON ao.schema_id= s.schema_id
JOIN sys.database_principals  AS dpr ON dp.grantee_principal_id= dpr.principal_id
JOIN INFORMATION_SCHEMA.COLUMN_PRIVILEGES AS cp  ON ao.name = cp.[TABLE_NAME] AND USER_NAME(dp.grantee_principal_id) = cp.grantee AND @SecurityPrincipal3 = cp.grantee 

OPEN tableCursor
FETCH NEXT 
FROM tableCursor
INTO @PrincipalName
,@PrincipalType
,@DatabaseName
,@ObjectType
,@ObjectName
,@PermissionObject
,@CreationDate
,@ModifiedDate
,@ScriptType

WHILE (@@FETCH_STATUS = 0)
BEGIN
INSERT INTO ##SecurityPermissions
VALUES ( GETDATE()
,@@SERVERNAME
,@PrincipalName
,@PrincipalType
,@DatabaseName
,@ObjectType
,@ObjectName
,@PermissionObject
,@CreationDate
,@ModifiedDate
,@ScriptType
)

FETCH NEXT 
FROM tableCursor
INTO@PrincipalName
,@PrincipalType
,@DatabaseName
,@ObjectType
,@ObjectName
,@PermissionObject
,@CreationDate
,@ModifiedDate
,@ScriptType
END

CLOSE tableCursor

DEALLOCATE tableCursor

SET NOCOUNT OFF;

')

SELECT [CollectionDate]
  ,[ServerInstance]
  ,[PrincipalName]
  ,[PrincipalType]
  ,[DatabaseName]
  ,[ObjectType]
  ,[ObjectName]
  ,[PermissionObject]
  ,[CreationDate]
  ,[ModifiedDate]
  ,[ScriptType]
FROM ##SecurityPermissions
Populate destination table 

DROP TABLE ##SecurityPermissions

Any assistance would be greatly received. 

dtexec or dtexecui - client or server application?

$
0
0

Hi, is dtexec and dtexecui a client or server component? which are the minimum install requirements for running this?

I would like to run dtsx packages not from SSIS/SQL Server (avoid licence if possible, also not install Visual Studio). if any of them are fully functional as client component that works, but if I still need any server component installed in order to run them please let me know.

Also between the 2: dtexec and dtexecui any of them need only client component install?

Thank you,

MDX to return percent measure as pure numeric value type to SSIS data flow

$
0
0

I am trying to read data out of an analysis services cube and process that data through an SSIS data flow. The MDX query is very simple (identifiers obfuscated):

 SELECT NON EMPTY { [Measures].[somemeasure] }  ON 0, 
 NON EMPTY { ([H0].[H1].[H2].ALLMEMBERS ) }  ON 1 
 FROM [somecube] 

The issue is that the measure "somemeasure" will return data as a formatted percent string, like "12.3%". I want the underlying numeric value, not the formatted string. So, I altered this to:

 SELECT NON EMPTY { [Measures].[somemeasure] }  ON 0, 
 NON EMPTY { ([H0].[H1].[H2].ALLMEMBERS ) }  ON 1 
 FROM [somecube] 
cell properties value

This now returns the value as a decimal number, however, the problem is not completely solved, because in SSIS this data is still treated as something other than a simple numeric value:

Validation warning.  {EBF6EDE6-C061-433D-9C40-5BEB570F4089}: The data type "System.Object" found on column "[Measures].[somemeasure]" is not supported for the ADO NET Source. This column will be converted to  DT_NTEXT.

I could do a derived column transform, but that won't eliminate the source warning.

What is the microsoft-intended way to have an SSAS data source in SSIS that does not result in data type warnings?



http://www.sqlservercentral.com/blogs/don_halloran/

ODBC lookup - options

$
0
0

Hi, I'm trying to do a lookup to a PostgresQL table that I can only access with ODBC. I noticed no options for lookups to ODBC tables and looked in this forum for similar questions. I only found ones that were dated from 2006 and before.

I was wondering since this is in a context of a data warehouse for which I have to load a fact table and lookup several dimensions if loading each individual dimension into cache (file) with a cache transformer component is still the only option?

Roland

White screen upon re-opening an SSIS package

$
0
0

Occasionally, when opening an SSIS package, the designer will be blank/white. The properties window is empty, the xml behind- the-scenes is un-editable, and the only work-around I've seen is to restart VS. 

Minimal googling has revealed that this has been a bug within SSIS for years (just search "SSIS Designer is Solid White").

What I'm asking is whether anyone has found a better work-around, and maybe some info as to why it has been around for so long without a fix from Microsoft. Other search results indicate there have been multiple issues opened in Connect before it was retired. 

Thanks,

J

 

Uncertain If SSIS Project Is Being upgraded during Deployment

$
0
0

Hi, 

Let me start by saying that I do not want to upgrade the SSIS project that I am working on and need better understanding on what will trigger the update.

The SSIS Project that I am modifying and need to deploy is 2014. I modified just one package and saved it using Visual Studio 2019.

On my local machine, I have the following installed: Visual Studio 2019 and Sql Server/SSIS 2017.

To deploy my changes, I am running the the wizard from cmd prompt. It is a project deployment, source is the ispac file I created and destination is sql server 2014 instance.

Questions:

1) Will my local machine installations cause this project to be upgraded.

2) The deployment errors with a timeout. Any ideas on what could be triggering that? I am working from home and my wifi is not the greatest.  The deployment runs from some time before it errors.

Error:

Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (.Net SqlClient Data Provider)

Error Number: -2
Severity: 11
State: 0
------------------------------
Program Location:
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByteArray(Byte[] buff, Int32 offset, Int32 len, Int32& totalRead)
   at System.Data.SqlClient.TdsParserStateObject.TryReadPlpBytes(Byte[]& buff, Int32 offst, Int32 len, Int32& totalBytesRead)
   at System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj, SqlCommandColumnEncryptionSetting columnEncryptionOverride, String columnName)
   at System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly)
   at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)
   at System.Data.SqlClient.SqlDataReader.GetSqlBinary(Int32 i)
   at Microsoft.SqlServer.Management.IntegrationServices.ProjectInfo.GetProjectBytes()
   at Microsoft.SqlServer.IntegrationServices.Wizard.Common.Model.SourcePageModel.LoadServerProject()
   at Microsoft.SqlServer.IntegrationServices.Wizard.Common.Model.SourcePageModel.LoadProject()
   at Microsoft.SqlServer.IntegrationServices.Wizard.Common.Pages.SelectSourceProgressPage.LoadAndValidateProject(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

===================================

The wait operation timed out



SSIS Data Transfer

$
0
0

Hi,

I am new to SSIS and needed help with this.

I am copying a few tables from one server to another using ssis, i wanted to know if  there is a way in which I can retain their primary and foreign key constraints intact.

Any help would be appreciated.

Thank you

The reference assemblies for framework ".NETFramework,Version=v4.7" were not found

$
0
0
Hi,

I had .net framework 4.7.03062 and Visual Studio SSDT 2015, need to upgrade to SSDT 2017 as of production version because my packages failed for version issues. Installed SSDT 2017 version 15.9.24 but still packages were failed. Then came to know .net framework should also similar, so installed 4.8.03761 and uninstalled the old one. I created the new project in SSDT 2017 and package but the script component package giving me following error.

SeverityCode DescriptionProjectFileLineSuppression State
ErrorError loading MyPackage.dtsx: MSB3644 - The reference assemblies for framework ".NETFramework,Version=v4.7" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend., C:\Program Files (x86)\Microsoft Visual Studio\2017\SQL\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets, 1179, 5C:\work\SSDT\TreasuryDataLoad\TreasuryDataLoad\MyPackage.dtsx1

I am unable to identify how SSIS package still searching for old .NETFramework, following assembly references used.

            <AssemblyReferences>
                <AssemblyReference AssemblyPath="Microsoft.SqlServer.DTSPipelineWrap" />
                <AssemblyReference AssemblyPath="Microsoft.SqlServer.DTSRuntimeWrap" />
                <AssemblyReference AssemblyPath="Microsoft.SqlServer.PipelineHost" />
                <AssemblyReference AssemblyPath="Microsoft.SqlServer.TxScript" />
                <AssemblyReference AssemblyPath="System.dll" />
                <AssemblyReference AssemblyPath="System.Data.dll" />
                <AssemblyReference AssemblyPath="System.Xml.dll" />
            </AssemblyReferences>



Many Thanks, Muhammad Yasir

Calling a child package using a variable

$
0
0

Hello,

I have a solution that has on parent package and 5 child packages.

I want to do it in a way that I will tell it what packages to call with a variable.

For example

I have parent package

package_one

package_two

package_three

package_four

Parent package will start and it will call the first two packages on the variable object, when one package is finished it will keep going down the list.

can it be done? 

thanks

Import excel files in a SQL server from TEAMS

$
0
0

Hi,

I need to import the excel files saved in a teams site in some sql server table (sql is on a VM on Azure, it is not a SQL Azure) with SSIS.

The teams site is something like:

https://sharepoint.com/teams/TEST/Shared%20Documents/Forms/AllItems.aspx

How can I reach the goal without using third party objects?

Many Thanks,

Simona


What some methods for converting/upgrading existing SSIS packages to newer version of Visual Studio?

$
0
0
I've found out that with the latest version of Visual Studio e.g. 2019, it breaks our existing SSIS packages. Are there ways we can simply convert/upgrade our existing SSIS packages to the new version?
Viewing all 24688 articles
Browse latest View live


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