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

External columns vs. output columns?

$
0
0

Can someone please explain the difference between Output and External columns? I can't fathom why "Output"  columns aren't good enough. In other words, what is there a need or value in having two types of "output" columns?

TIA,

 

Barkingdong

 


Combine Primary key from Destination Table Load with Source Data

$
0
0

Hi,

I have a flat file with several fields and this data needs to get loaded to one parent and multiple child tables. Think of this as a Sample header and Sample line information rolled up in one row.

The first few fields need to get loaded into the header table (parent table) and  I need to use the  primarykey (parentid) from the parent table as a foreign key in the subsequent data flows for loading child tables.

Is there a way I can do this in ssis?


Note: Generally I would have created a second data flow task with the flat file as the source and add an extensive lookup onto the the header table (parent table) and get the parentid that way.

But in this case the header table doesn't have any fields which I can use to make a one-on-one match to the source file.   

 Thanks!       

Issue With Project Parameters In Child Packages

$
0
0
I would like to report a bug/issue with SSIS. It occurs when you create project parameter ( a common value for all the packages inside the project ) and use it as a connection string in data flow task source. If you create a master package that calls other packages then packages run successfully but if you execute the packages using a for each loop passing package location then as soon as the child package loads it throws an error that project parameter cannot be found in variable list (Error Code : 0xC00470A6& 0xC0017003 -- Unable to parse connection string ).
Said that, please note that even though it throws an error but if we increase the max error count for Execute Package Task then package executes successfully from beginning to end but it will throw errors saying project parameter not found and cannot be parsed ( even if it has already been parsed in child package ).

Looking forward for help and for reporting this as bug ( in case it is )

Setting a parameter on a SQL Agent job to change a connection string

$
0
0

Good Morning,

Is it possible to create a parameter in a SQL Job to change a connection string on an SSIS package without having to redeploy the package for each change. 

I am currently using SQL 2012 with BIDS 2010

Any help would be amazing.

Thank you

Mapping numeric to nvarchar eliminates leading zero

$
0
0

I am working with VS SSIS 2015 and SQL SERVER 2017 (14.0.1000.169). The problem I'm facing is when I'm mapping a numeric data type column in SSIS to nvarchar column in SQL table. The value of the column in SSIS does contain a leading zero (0.07), but when mapped to a table it eliminates the leading zero (.07).

When i see the data viewer just before insert to the table, the values are just fine (0.07,0.08)

The metadata just before insert to the table is also fine. The both columns are DT_NUMERIC (4,2)

Please advise, and thank you in advance. Best Regards.

Is it possible to use a Golang SQL Server Driver to pull SSIS information

$
0
0

Scenario: I'm trying to do work on some SSIS manipulations in Golang. I've seen that there is a mssql driver denisenkom/go-mssqldb. My main goal is to either "watch" or locally copy the .dtsx files to the machine running Go. 

1. I'm not sure if this is something that is possible with this driver? Maybe there's a different driver I should be using
2. If this is the right driver, then I'm not sure what commands I should be mimicking from something like SSMS. 
3. Any other feedback/assistance on this would be super helpful!

Stopping a Data Flow Task quickly when Excel source columns aren't correct?

$
0
0

I have a Data Flow Task consisting of a source Script Component that reads an Excel file.  That data is fed into a transformation Script Component that verifies the columns are correct and reorders and assigns them to the destination columns.  Then the data runs through a conversion task.  Then to the destination component.

When the transformation Script Component looks at the first row and detects an invalid file, I want to abort the whole process.

The problem is it always takes just as long to return immediately from Input0_ProcessInputRow() as it does to import a valid file.  Nothing I do speeds up the process of exiting the execution of a package.  Even throwing an exception as the first statement of Input0_ProcessInputRow() doesn't speed it up.

What can I do to make error feedback faster?

Cancel/delete execution with status of "Created Execution"

$
0
0

I have a couple of executions with a status of "Created execution".  I can see this either via the Executions report or query (SELECT * from catalog.executions where status = 1).

How can I get rid of these executions without calling catalog.start_execution?  We do not want these to run, but I want to clean them up so they do not show up anymore.

Jobs can get in this state for a couple of reasons:

  • start_execution called when SSIS is down
  • required parameters not set on job
  • start_execution never called

Thanks.



count

$
0
0

Hi,

It's a simple count statement but not sure why I didn't get the correct count.

SELECT  distinct
count(a.myorder) OVER (PARTITION BY a.mydate) as 'orderCnt',
convert(varchar(30), a.mydate,110) as Date
FROM   mytblsale 
group by a.mydate,a.morder


Basically, I need to count how many orders for each date. Why 02-10-2020 shows twice , it should be show one line with  total is 28.

Thanks


Character set issue

$
0
0

I have an SSIS package which is using Oracle Provider for OLE DB to retrieve data from Oracle database. 
One of the columns that I'm selecting is a coordinates(polygon) info. It is coming as CLOB (DT_NTEXT) in a text polygon representation: POLYGON((-1 1, -3 3, -1 1)) - (It's just an example. The actual values that I'm receiving have much more points and the string is very long)...
When I run the package on my local machine it works fine and shows the polygons as described above.
When I deploy my package to another server the values are coming like this: 䰀夀䜀 (Chinese characters...?)
The package is reading the data from the same Oracle source.
Any ideas on how it can be fixed? I cannot convert the column itself to another format since it can be very long (more than 8000 characters).

The connection "Connection" cannot be found. Verify that the connection manager has a connection with that name.

$
0
0

Hi, 

I am getting data of sharepoint online with ssis and odata. If I use Visual Studio the package work howerver I get a error when I deploying the package.  the configuration is the next:

Auth Type=4

target server version 140

url: https://blablabla.sharepoint.com/sites/_vti_bin/listdata.svc

user: usuario@dominio.com

The connection string is the next:

Service Document Url=https://***.sharepoint.com/sites/SISED/_vti_bin/listdata.svc;Include Atom Elements=Auto;Include Expanded Entities=False;Integrated Security=False;Cookie="SPOIDCRL=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+VjQsMGguZnxtZW1iZXJzaGlwfDEwMDMwMDAwYTMxZWFmMzdAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfHNvcG9ydGV0aUBpbnNzZXJ2aWNpb3MuY29tLDEzMTc0NjkyNTU4MDAwMDAwMCwxMzE2NzE2NTE3MzAwMDAwMDAsMTMxNzUxMjQ1NTgyODY2NzY3LDAuMC4wLjAsNCw3YTI2ZjMyNC1mM2FlLTRkNDYtOWMwNy1hMzBjMmYyNTEzNzMsLCw1MmE1NzU5ZS0wMDU5LTYwMDAtMzExOS04NDc0YjcxMjc3NGEsNTJhNTc1OWUtMDA1OS02MDAwLTMxMTktODQ3NGI3MTI3NzRhLCwwLDAsMCx1MjNjMTRKQ1hhSHcxRUtPcXhzdUFySUVuVHJSRStpaUM3dm1ZYjNZQUVrUXJCVjJES3h5MFRzeTdKMWd2M05iNW80UERzNHpLZURFTGIzQXcyZVFOcjlhYUQrYVNoaC9PSmJSMkgwTE5SbEpSL2IwNmpEN2VGUCtwV0NWdml4SHdtZWxrL0gvOWVvNmdVZkRZSWhVUmp0SVhxb2MvR1BWS1k1TEoyT052M2FjTW9FTU5tYWxtRVBTdG9hTk51TmlveDBiV2w1eG81UTFaaUhQZ3FnTTdtYUlLbjJBYzhBVzltZ1BGODZlRjlRNll0UVpUeXVnd0liUjYvdXFyTVJ5OCs2dStlUHVTV2pqTGpKNnJ1V3BFTlMvZzNuOTg2SjVpQTJaYzNEVVd1SUxPMzBDV3MwWGFWckZjSVpSOGt2clIwOUhLT0QvNGRybm9vYVFhS3RDYlE9PTwvU1A+";User ID=soporteTI@dominio.com;Persist Security Info=False;Time Out=600;Schema Sample Size=25;Retry Count=5;Retry Sleep=100;Keep Alive=False;Max Received Message Size=4398046511104

The error is the next:

 OData source failed validation and returned code 0xc020801a.

the connection "connection" cannot be found. Verify that the connection manager has a connection with that name.

Can you help me? Thanks you

Can't open Analysis Services Processing Task with latest SSDT release

$
0
0

I have an existing SSIS package with an "Analysis Services Processing" task. When I try to edit the task I receive the error message below. When I confirm the error message there is nothing visible on the "Processing Settings" section in the editor which is opened. What am I missing here?

System components:

  • Visual Studio 2017 (15.8.9)
  • SQL Server Data Tools standalone installer (15.8.2)
  • Integration Services Project Extension  (2.1)
  • Windows 10

TITLE: Analysis Services Processing Task
------------------------------

Could not load type 'Microsoft.DataWarehouse.Design.IUserPromptService' from assembly 'Microsoft.DataWarehouse, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'.

------------------------------
BUTTONS:

OK
------------------------------

Error Executing SSIS Package from SSISDB Catalog

$
0
0

I am seeing an issue while executing the SSIS Package through SSISDB Catalog while passing the connection string value through environment variable

Error :-

Faile to Acquire Connection. Connection may not have configured properly or you may not have the right permissions on this connection.

Note :-

I am able to run the same Package while passing the connection string value directly to edit mode box from SSISDB Catalog.

Problem with executing an SSIS package using data stored on a shared drive

$
0
0
This is a fairly perplexing problem for me.  We have a application that writes files out to a shared drive that I need to process each day.  We run SQL Server 2008 R2 in a 64 bit environment.  My script runs fine in BIDS but when I try to run it with SQL Agent I get the message :

An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "'X:\20121001\' is not a valid path.  Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.".

I've tried using the UNC path and everything else that I can think of.  The SQL Agent job runs under a Proxy Account which uses my credentials.  Do I need to give the Proxy Account some additional privileges? 

The thing that I can't figure out is why the path is marked as invalid when it runs in SQL Agent but not BIDS. I've been working on this all day and would like to put this thing to rest!


Harold Jackson

SINGLE CONNECTION WITH MULTIPLE DATABASE IN SSIS PACKAGE

$
0
0

I'm using SQL server 2016

I have a server named abc , in that server i have 3 databases A1 , A2 , A3 

i want dynamically connect to all these databases in SSIS and run a particular query in each database ( table name in the query is same all over the 3 databases)  how can i achieve that



What access do I need to allow for the SQL Server Agent Owner in order to run a SSIS Package with PGP Encryption and WinSCP

$
0
0

So when we run the SSIS Package locally utilizing my Logon obviously, it works fine. But when we create a SQL Server Agent Job with an Owner that is a Service Account, I think it's choking when attempting to run PGP.exe and WinSCP.com on the Job Server.

What access do I need to provide for the Service Account on the Job Server so that it can properly execute PGP.exe and WinSCP.com on our Job Server?

Thanks for your review and am hopeful for a reply.

Execute package tasks failing but not the called packages

$
0
0

Hi All,

I have a package (call child packages). Its a sequence container which used execute package tasks and i have 10 of them , when i execute the package all the individual packages are success , but the call child package is showing it as failed , the error message doesn't give anything else either, please suggest as where i should start looking. Below are the warning and error message as well as the screen shots

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Task ngweb_account failed

How to split single column into multiple columns using SSIS

$
0
0

Hi Team,

If it possible to split single column to multiple columns using SSIS package please help one same.

For example:

Input data:

historyId      remarks
197     OldBalanceAmount: 916.4413 || OldHoldAmount: 0.0000 || oldFundAmount: 0.0000 || oldTemporaryAmount 0.0000 ||NewBalanceAmount: 916.4413 || NewHoldAmount: 0.0000 || NewFundAmount: 0.0000 || NewTemporaryAmount 15000.0000

Out Put:

historyIdOldBalanceAmount OldHoldAmount oldFundAmountoldTemporaryAmount NewBalanceAmountNewHoldAmountNewFundAmountNewTemporaryAmount 
197916.4413000916.44130015000


Thanks Bala Narasimha

Upgrading to Teradata 16.2 on WinServer 2012R2/SS-2016SP1 and Attunity for Teradata

$
0
0

Hello, I’m on a Windows Server 2012 R2 Standard Edition, and SQL Server 2016 SP1. I also have installed Teradata Driver 15.10, Teradata Transport Utilities 15.10, and Attunity V3.

I need to upgrade the Teradata Driver, Utilities to Teradata Version 16.2, and I may have to upgrade the SQL Server Attunity for Teradata Connector to Version 4, not sure yet on that one.

My question is, has someone else out here with the same system setup, performed this same upgrade without issues and no incompatibilities problems? Any pitfalls I need to be made aware of by chance?

Thank you

Problem adding config file to agent job step to execute SSIS package

$
0
0
Greetings, have an issue adding a config file through ssms on SQL 2014. I am moving numerous 2008 R2 file based packages to a new server. I have copied about 100 packages over, scripting off the jobs from the old server, making required changes to the configs and packages to get them to run on the new 2014 server again using the file based packages not SSISDB yet. The issue I have hit with 1 package is I needed to rewrite this, i also renamed it to remove the spaces and was going to manually set up the job as I have done many times on the older servers. I added the step and browsed to the "ssis packages" folder, which would be on my machine since I was setting it up remotely and it worked fine. Then I tried to add config files which would need to be on the server and they are but the explorer window does not show any folders on the server and there are about 100. I tried remoting in to the server to do this but that doesn't work either. What am I missing here as to why I cant browse to the config files? I can simply script the job from the old server and edit the job but this should work? I tried SSMS 17 and SSMS 18 but neither would allow me to browse to the config files.

any ideas appreciated. See pic below of what I am seeing when I try to add a config file and the explorer window below shows the folder on the server.
Viewing all 24688 articles
Browse latest View live


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