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

SSIS 2014 Flat File Source - Redirect Row - Crashes

$
0
0

Hi, I have an SSIS package written in Visual Studio 2013, to be run on SSIS2014. I am attempting to parse a flat text file. If any of the columns are truncated or cannot be casted to the corresponding data type, I want to redirect these rows to a Script Component and then dump the data into a SQL Server table.

When I debug this package, the redirect rows step is hanging. I see the yellow spinning icon and nothing happens. Down in the status bar, it says that the "Package execution completed", but it didn't. There aren't any errors in the Progress tab.

Do you know why the "Redirect Row" is freezing? I have placed breakpoints in the "Set Error Description" script component and they are not being hit. So, it looks like the "Redirect Row" has crashed/raised an exception.

When I load this package into SSIS 2014, and run from the server, it crashes.

Thanks for your help.


SSIS in VisualStudio 2014

$
0
0

what about SSIS in VisualStudio 2014 ?

How to debug Stored porcedure which is calling in SSIS package

$
0
0

hi,

  How to debug Stored procedure which is calling in SSIS package..

Thanks

Remove Extra Column delimiters in delimited flat file

$
0
0

I need to import flat files into a table each using SSIS, the files are delimited by a tilde "~", due to commas and double quotes being part of the text. 

Unfortunately I found that sometimes, within the first column of some rows, there is an extra "~", which then of course, throws the whole file import off and columns out of synch. Currently, I write the error rows to another log file, but ideally would like to cleanse the files before import.

Is there a way to count the tildes from the last column to the first and remove the extra tildes from the row with Visual Basic Script or C# task in SSIS?

If anyone has such a script, please consider sharing with me.



Jobs in SSIS

$
0
0

Hi All,

How many jobs we can run parallelely in SSIS.

Thanks in Advance....

Logic If "week day" = something do that

$
0
0

Hello,

I'm looking how to create a logic in ETL

IF week day = Monday then execute package 1

IF week day = Tuesday then execute package 2

.....

Thanks for your help

Daniel

How to export data into Excel Sheet with in a specific range using SSIS

$
0
0

Please help me in this:

i have a excel sheet with some data from A1 to G21 and i want to export it into a excel sheet by using Excel Destination in the same Excel WorkBook but in different sheet within the range of H10 to N31.

how can i make it happen.

tell me the solution if any...

SSIS Package Configuration option resets when collapsing / expanding options tree

$
0
0

On Visual Studio 2013 with SSDT for SQL Server 2014

I noticed something very strange.

I am viewing the package configuration selected option for a package:

Package configuration before collapsing / expanding

Now, i just click on the - sign and then on the plus sign on the "Properties" branch. And the option is cleared:

enter image description here

The ONLY way i found not to mess everything is just to have ALL the options FULL expanded and THEN to select what i want.

Is this a known bug?


Elias


MOVE SELECTED CLOUMNS IN EXCEL TO SQL SERVER

$
0
0

HELLO, 

I AM TRYING TO MOVE SELECTED COLUMNS FROM EXCEL SHEET TO SQL SERVER, I am using sql 2012, I can transfer the whole excel file.

but i would like to move only selected columns. any advice.

thanks 

SSIS Fuzzy Grouping Threshhold (can store value in a config file)

$
0
0

The threshold is currently set within the designer.

My customer will want to change this up and down - can this value be stored in a config file?


CG

SSIS:- How to create Slowly changing dimension component using c#.

$
0
0
How to Create Slowly changing dimension using c# Code?

Xml Package Configuration Error

$
0
0

I have a simple package which loads data from one table to other using oledb.

I am dynamically constructing the connecting string using script task, package variables ( servername databasename, CM_ConnString) and xml pkg config file.

everything looks good, but when I run I am getting below error.

script task content: is 

 Dts.Variables["User::CM_ConnString"].Value = "Data Source=" + Dts.Variables["User::ServerName"].Value.ToString() + ";Initial Catalog=" + Dts.Variables["User::DatabaseName"].Value.ToString()+";Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False";

xml file content is as below 

...

</DTSConfigurationHeading>-<Configuration ValueType="String" Path="\Package.Variables[User::CM_ConnString].Properties[Value]" ConfiguredType="Property"><ConfiguredValue>Data Source=localhost;Initial Catalog=TesT;Provider=SQLNCLI10.1;Integrated Security=SSPI;Application Name=SSIS-Package-{4F3FC20B-334F-4DEB-92A7-14AEB3A2178C}</ConfiguredValue></Configuration>-<Configuration ValueType="String" Path="\Package.Variables[User::DatabaseName].Properties[Value]" ConfiguredType="Property"><ConfiguredValue>TesT</ConfiguredValue>

...

[Connection manager "ConnManager_TesT"] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Login timeout expired".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".


Neil

Event handler for basic SSIS package

$
0
0

As a developer I want to have a template for SSIS that has event handlers using parameters not expression builder

Acceptance Criteria:

-  Event handlers are dynamic using parameters 

Please ideas and assist.

Thanks


how to pass dynamic table name in ado.net destination

$
0
0

I need to insert some date retrieved from an OLE DB source (sql server) and insert to a table in an ado.net destination (teradata). The destination table name is dynamically generated and passed to the the package. I have problem passing this table name to the ado.net destination.

In the package I create the table in the destination db using the table name passed to the package. Then I set up a data flow, with OLE DB source and ado.net destination. In the destination, I am not able to choose the table/view from the dropdown list and cannot map the columns, since it will be dynamically determined. In the Expression of the dataflow property, I add a property for
[ADO NET Destination].[TableOrViewName] as @[User::UserID]. I also set ValidateExternalMetadata to false and delayedValidation to true. However, it still does not work. Please help.

Import multiple CSV files - alternative???

$
0
0

I have tried the following methods for importing .csv files to SQL Server:

SSIS - flat file source to destination

Bulk Insert (SSIS)

Bulk Insert (TSQL) using xp_dirtree and format file (bcp)

Although with these methods, most records are imported, records are always missing!

Some records of my csv files contain quotations "" which I have read causes problemS with Bulk Insert.

I have run out of ideas although I have read also that I could read all data into a single column and then process using a script or stored proc.

Can anyone confirm this or recommend an alternative?

Help appreciated.


select only desired columns from the source

$
0
0

In the source file there is a column city.

To process the package i wanted only the records with one city.

For e.g. if there are multiple cities in the column like Mumbai, Pune, Hyderabad, Delhi..... etc

I only want records with Delhi to be copied on the table in the data flow task.

Can someone help me with this?

"General network error" - while connecting to SQL 2000 DB instance from SQL Agent Service

$
0
0

I seem to get the error as below, when I try to execute an SSIS package from SQL Agent service on a remote server (SQL 2012 instance).

-------------------------------------------

SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "[DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.".

------------------------------------

The package tries to Connect to a SQL 2000 database instance, and errors out with this message.

Any ideas how to fix this?

Thanks

P

Test connection failed because of an error in initializing provider. Oracle client and networking components were not found.

$
0
0

Hi, I have created a SSIS package using Oracle source. But i dont have Oracle components installed on my machine so getting error :

Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.

Provider is unable to function until these components are installed.

I am searching online but dont know which components i need to install.

Can somebody provide me the link where i can download those components?

I am using 64 bit operating system and sql server 2008.

Thanks

sql server agent job failing

$
0
0

Hi, I created a ssis package, that simply transfer an excel sheet into ole db, it works on its own, but when I try to use the sql server agent service, the first step is successful,but the second step of execution is not, but I don't have enough details to check the problem.

when I check the database , a table is created, with only the column headers, but no rows.

please can some one guide me. cheers.

this was in the error log, i checked, and imake sure the file dtx, or the excel was not opened, but what i dont know is about the file permission

,ssa3,Error,1,USER-PC,ssa3,ssas3,,Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  11:38:23 Error: 2014-10-23 11:38:23.34    

Code: 0xC0202009     Source: Package Connection manager "Excel Connection Manager"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available. Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Jet database engine cannot open the file 'C:\Users\User\Desktop\dup.xls'.  It is already opened exclusively by another user<c/> or you need permission to view its data.".  

 Code: 0xC020801C     Source: Data Flow Task Excel Source [2]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  

SSIS 2008 R2 - How to convert codepage 1252 to 850

$
0
0

Hi,

I need to extract data from SQL Server (varchar(255) in codepage 1252) to Sybase ASE 12.5.1 (varchar(255) in codepage 850).

I tried converting the data directly from the OLE DB Source to codepage 850. E.g:

  • select my_col = convert (varchar(255), upper (my_col)) COLLATE SQL_Latin1_General_CP850_CI_AS from my_table.

However, I was not able to set the OLE DB Source Error Output to codepage 850.

Then I tried the Data Conversion task, but I get the following message:

  • «Error4 Validation error. DF_Task: DF_Task: Conversion from "DT_STR" with code page 1252 to "DT_STR" with code page 850 is not supported.  my_package.dtsx00»

Do you have any suggestion?

Thanks in advance,

Tiago.

Viewing all 24688 articles
Browse latest View live




Latest Images