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

Is it possible to T-SQL "merge" a text file into a SQL table?

$
0
0

Hi All,

I have a text file that I want to "merge" (i.e., insert, update, and delete) directly into a SQL 2012 table.  Can this be done with SSIS?  I assume not, and that I'll need to load the text file into a staging table before performing a T-SQL merge.

Thanks,
Eric B.


Percentage Sampling Transformation with Excel Destination Component fails when rows count exceeded 400,000 rows (dataflow fails)

$
0
0

Hello, everyone!

I'm running SSIS package which containing an OLE DB Source, a few Percentage Sampling Transformation components (high on the picture) and the Excel Destination, at the bottom of picture (few different files).

picture: https://imgur (dot) com/a/OtHaZrv

When count of the proceeded rows less than ~400,000, it's running fine, but when rows count goes after ~460,000, Excell destination marked as failed; DataFlow component marked as failed despite it continues executing other flows to the other Excel Destinatons (few Excel Destination in one DataFlow, and data spreading between them due to Percentage Sampling Transformation logic). An other flow continues to execute untill count of proceeded rows with their Excell coming to 460,000; after they fails again.

I has try to use Row Sampling Transformation component instead of this one. When I has tuned it to capture 500 thousand of rows, it would be failed with the package after running, but I tuned it to capture 400 thousand of rows, it would be worked and completed time by time.

It's most horrible that  I cannot saw any errors which cause those fails. When I pointed mouse on red icon of error, it doesn't show any message:

picture: https://imgur (dot) com/a/OtHaZrv

It's no any information both in Error windows of Visual Studio

picture: https://imgur (dot) com/a/OtHaZrv

both in output window

picture: https://imgur (dot) com/ZG5lzh7

So, let me ask you a question,

  • how to determine where bottleneck in my dataFlow (Sample Percentage, or Excell Destination),
  • how to view error description of this kind of falis,
  • and how to resolve this situation?

At the last thing to talk, there if part of the my dataflow component:

picture: https://imgur (dot) com/TnfGj8p

Thank everyone for advance,

with regards.

How do I view/edit an existing SSIS job using MS SSMS 2008?

$
0
0

Greetings,

How do I view an existing dtsx file in the GUI tool that created it?

I am trying to view the table/column mappings to one of the "steps" in our SSIS job.  It refers to a dtsx file on the server.  I have the source code for this file, from our Team Foundation Server.  More or less, I can understand big chunks of the file, but it would be very helpful to "view" the job in the graphical interface that was used (i.e. Import Wizard or the old DTS wizard) to create it.

My Google searches have suggested that I need to install DTS legacy tools.  Am I missing something?  Is there no way in SSMS to view what it created? 

Rob

Cannot open the data file -Error

$
0
0

I have deployed SSIS package which extracts records from OLEDB source and loads to flat file destination.

The package is working fine when executed locally but when deployed, it errors with message 'Cannot open the datafile '

Can you please help

SSIS Communication Link Provider exception

$
0
0

I am getting following error while running the package which extracts data from a table which has 150 Million records.

The other tables which has got similar count are running fine. Its only with this table i am getting the error. Can you please help me to figure out the reason ,

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 11.0"  Hresult: 0x80004005  Description: "Communication link failure".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

ODBC Progress datatype problems after updating to VS 2017 15.9

$
0
0

Hey there,

we are currently using VS 2017 15.7.5 and SSDT 15.8

We've got SSIS packages which read data from a Progress database via ODBC.

We updated to VS 2017 15.9.2 and now all the ODBC Progress packages fail, nothing else has been changed.

The problem we have is that all the columns which were previously correctly identified as DT_DBDATE are now recognized as DT_BYTES.

It seems to be some weird regional or language problem.

Comparing the ODBC Source previews:

On the machine where we still have 15.7.5 date values show as for example "2018-11-05".

On the new machine with 15.9.2 date values show as "3/11/2014 12:00:00 AM".

Changing any of the machine's regional settings didn't help, so it must be a problem within Visual Studio?

The number of input columns for destination table cannot be zero

$
0
0

Hello!

I have problem with my SSIS Package. I have control
flow with about 30 data flows inside. Every data flow is very simple: one
source table from oracle database and one destination table from Microsoft SQL
database. I generate my flow using BIML language. After generation, every
data flow has error inside (error on destination Microsoft table). The error
is:

The number of input columns for [ my Microsoft,
destination table] cannot be zero

I check this component precisely and I don't see any
mistakes. Funny thing is that when I double click on destination MS table,
go to Mappings and click OK (without any changes), the error disappear.

I assume that I need to do some additional validation
or something like this but I don't know how. Any ideas how to resolve this
problem?

Of course I can go to every data flow, go to
destination table, go to mappings and click ok but I feel that it is extremely inconvenient
(because of large number of data flows) and unprofessional.

Any help would be appreciate!



SSISUnit testing: How do I replace the package connections with the test ones?

$
0
0

I've started looking at unit testing SSIS and was trying SSISUnit.

Not sure if I am being thick, but how do I get the task to use the connections set up in the test file?

<?xml version="1.0" encoding="utf-8" ?><TestSuite xmlns="http://tempuri.org/SsisUnit.xsd"><ConnectionList><Connection name="Destination" connection="Data Source=localhost;Initial Catalog=SandBox;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;" connectionType="ConnectionString"/>  </ConnectionList><PackageList><Package name="DimTranType" packagePath="C:\prj\IntegrafinBI\SSIS\IntegrafinDW\ConformedDimensions\DimTranType.dtsx" storageType="FileSystem"/>  </PackageList><TestSuiteSetup></TestSuiteSetup><Setup></Setup><Tests><Test name="Load Tran Type" package="DimTranType" task="\Package\Add DW Custom Reversals"><TestSetup><SqlCommand connectionRef="Destination" returnsValue="false">
      IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DimTranType]') AND type in (N'U'))

      CREATE TABLE [dbo].[DimTranType](
      [TranTypeKey] [int] IDENTITY(1,1) NOT NULL,
      [trantype] [char](4) NOT NULL,
      [SubTranDescription] [varchar](60) NOT NULL,
      [TranGroup] [char](12) NOT NULL,
      [SubTranType] [char](5) NOT NULL,
      [TranDescription] [varchar](60) NULL,
      [InsertAuditKey] [int] NOT NULL,
      [UpdateAuditKey] [int] NOT NULL,
      CONSTRAINT [PK_SubTranType] PRIMARY KEY CLUSTERED
      (
      [SubTranType] ASC
      )
      )
    </SqlCommand></TestSetup><Assert name="Verify Table Count" expectedResult="71" testBefore="false"><VariableCommand operation="Get" name="tableCount" value=""/></Assert></Test>  </Tests><Teardown></Teardown><TestSuiteTeardown></TestSuiteTeardown></TestSuite>

If I try to run this, it errors saying it cant find the connections set up in the package instead of using the test connection.

What should I be setting to override the connections so I can fake the source and destination connections?

Regards

Jon


Failed to start project (Microsoft Visual Studio)

$
0
0

After going through uninstallation and re-installation of SQL Server 2016 and Visual Studio 2017, as a newbie, I am getting now a message in Visual Studio when a run a sis package with the following details, any guidance would be of great support in going through this steep learning curve.

Failed to start project (Microsoft Visual Studio)

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

The directory name is invalid (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
Program Location:

   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

Help Loading data from Access DB File to SQL Server using SSIS

$
0
0

Hi,
I am trying to load data from this state website URL.
http://cogcc.state.co.us/data2.html#/downloads

This website has Production data zipped on yearly basis.
I want to load the data for the present year every day to SQL Server( Will load new data and update any changes accordingly)
I am trying to load this using SSIS.
When I manually download the zip file and unzip it, I see the data is stored in Access DB File.

When I try to load this using SSIS I am getting the below error.

Can someone help/guide me on this, please

FYI... I tried using below two providers


How to post error records into another table

$
0
0

Hi All,

    I am using VS Enterprise2015. In my .csv file i have invalid data. I want to place invalid records into one table and valid records into another table. How i can achieve this.

   Please find the data below.

PROPERTYID,NAME,REGIONID,BRAND
ESL,"EDSA Shangri-La, Manila",Asia North,SL
FIJ,"Shangri-La's Fijian Resort, Yanuca Island",Asia North,SL
HJBB,Hotel Jen Brisbane,Asia North,HJ

Please guide me on this.

How dynamically fetch cell range data from excel source in ssis?

$
0
0

Hello Team,

I have data from pivot table in excel sheet. My header is on Sheet1$A5:D5. and all values are in Sheet1$A5:D6-D230000. But cell range is not fixed sometimes it is Sheet1$A5:D4000 or sometimes Sheet1$A5:D350000 so i really dont know cell range . As for time being i did (select * from [sheet1$A5:D1048576]) to avoid cell range but as i mentioned i am using pivot data so there are so many filters are coming that reflects error if i am using my select query statement.

Please i really need developers help if i can do through script also or may be some other ways. Please try to give me as SSIS package.

if exists delete data in ssis

$
0
0

Hi,

I have two tables one is primary and secondary table. I want to delete data into primary table if data same in two tables.

Every day we were loading data primary to secondary and fetching data from secondary only

Could you please help on this issue.


Thanks Bala Narasimha

Run command line with date parameters with C# in SSIS (2015)

$
0
0

Hi all

I need to run a command line on a server with date parameters using C# in SSIS (2015)

The command line example:

D:\TEST >dotnet TEST.dll --fromDateTime "2018-11-21" --toDateTime "2018-11-22"

Can you assist me in the script?

Thanks

The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.

$
0
0

Hi,

I am creating a SSIS package for which uses oracle provider for OLEDB.

Where as it's throwing an error when testing the connection. Please find the below error..

Test connection failed because of an error in initializing provider. The 'OraOLEDB.Oracle.1' provider is not registered on the local machine.

SSIS is on server1 and Oracle is on Server2.

Do u i need do anything with TNSNAMES.ORA file?? If yes, in which server??

Thanks

Bhanu


Losing code

$
0
0
We have a couple of projects in the integration services catalog, both containing packages that contain vb script tasks. I did an export of them from the integration services catalog into ispac files and tried to pull them into visual studio 2015.    they both pulled in, but when opening the script task we noticed that it was converted to c# and was just a shell.    After that, I pulled the projects directly from the integration services catalog using visual studio and the integration services import project wizard.    after doing this, I was able to open one of them and the script task was vb and was complete, but the other was still a C# shell as before.      The server instance is sql 2016.     We have the code saved in source control, but we are having a prod issue and were wanting to pull the code from prod and verify what is actually running to make sure it was what we thought it was.    Any idea why it's losing the vb script task and converting to a c# shell?       

Has anyone connected to Oracle from SSIS using Oracle Driver ( 12.1.0 ) from VS 2017 Data Tools SSIS

$
0
0

Hi,

I am facing the issue of connection below time out error .. 

LINK7" returned message "ORA-12170: TNS:Connect timeout occurred"

Ta,

Shuchi


shuchi

SSIS package taking very long to transfer data from SQL Server to Netezza Server

$
0
0

Hello,

I have a very basic data flow that transfers a table with 200,000 rows and 30 columns. The data flow is this:

ADO Net Source -----> ADO Net Destination

The Source connects to SQL Server and the ADO Net Destination connects to my Netezza Server. For the Destination, I check the "Use Bulk Insert when possible".

This process of transferring the table is taking very long. It transfers about 4600 rows every 15 minutes. Can anyone provide me with some suggestions. I'm very new to SSIS and it's my first SSIS package.

Thanks in advance!

Error 0x80131937 when calling OdbcCommand.ExecuteReader()

$
0
0

I'm getting this odd error when my C# .NET 4.6.2 application makes a call to OdbcCommand.ExecuteReader().  The connection to the server is successful, and I can verify in the debugger that OdbcConnection.Status is Open.  Here is my code, followed by the stack trace I get when the error occurs.  Any help would be great.  Thanks.

this._connection = new OdbcConnection(connectionString);
this._connection.Open();
OdbcCommand cmd = new OdbcCommand(queryString, this._connection);
OdbcDataReader reader = cmd.ExecuteReader(); // error occurs here
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.Odbc.OdbcCommand.ExecuteReader()
   at FactoryTestTool.Modules.MySQL.MySQLConnector.Select(MySQLQuerySelect query) in C:\Projects\dotnet-C-Sharp-FactoryTestTool\trunk\Code\FactoryTestTool\FactoryTestTool\Modules\MySQL\MySQLConnector.cs:line 120
   at FactoryTestTool.FormFactoryTestTool.buttonLogin_Click(Object sender, EventArgs e) in C:\Projects\dotnet-C-Sharp-FactoryTestTool\trunk\Code\FactoryTestTool\FactoryTestTool\FormFactoryTestTool.cs:line 637
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at FactoryTestTool.Program.Main(String[] args) in C:\Projects\dotnet-C-Sharp-FactoryTestTool\trunk\Code\FactoryTestTool\FactoryTestTool\Program.cs:line 90


How can we know a source schema has changed before SSIS package runs and fails?

$
0
0

Hi All,

The boss asked me how we could be made aware of schema changes to transactional application databases that will later cause a data warehouse SSIS package to fail.  Obviously, we could keep complete documentation in the form of field mappings that list our sources and destinations--I typically create these in Excel before I begin development--but it would be a huge task to complete up front and to maintain, not to mention having to reference them every time a change to a source table is proposed.  Is there another option?

Thanks,
Eric B.

Viewing all 24688 articles
Browse latest View live


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