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

export package to .net code

$
0
0

Hi,

DTS 2000 had the option to export a package to a vb code module - which can be added to any vb environment (especially for better debuging and performance tuning)

Is there any equivalent functionality in SSIS? Store a package as .NET Code?

Best Regards, Hannes


Loading tables from a Excel sheet with many tabs

$
0
0

Hi,

  Can you please give me some inputs on loading from Excel sheet which has many tabs and each and every tab has to go to a different table. 

Thanks

.net code to Export an SSIS Package

$
0
0
Is there a .net class that will export a ssis package from the MSDB package store to create the dstx file on the file system?

How to avoid Data Duplicate when the package fail first time and success second time?

$
0
0

Hi,

I developed a package which has two data flow tasks.Each data flow task extracts data from flat file and load in to table.My question is when i run the package first time first dat flow was succesfull and the second data flow task failed.I fixed the issue and run the package successfully.First table has duplicate data.I can truncate the data and load it to avoid duplication.Is there any way if any one of the task fails in the package the data sholuld not be loaded?

Any help is appreciated

Unexpected Termination of SSIS Package, even after CU5

$
0
0

Hello,

I have a package that is failing the the "Unexpected Termination" error message, documented here (well not documented, just noted) - http://support.microsoft.com/kb/2837964/en-us

I've applied the latest cumulative update (now CU5), yet I'm still getting this error when this 1 package runs.

This package pulls out a lot of data on a weekly basis. It has a for-each loop calling a child package.

The package itself can run just fine, I have a parameter that drives how may days data to extract, when constrained to only the last, say, 90 days, the package runs fine, but when I push that out to look at the full data set (something like 15000 days) it fails with this "Unexpected Termination".

How do I go about actually looking into what the problem is here? There are no errors logged at all (contrary to that KB article, there was no event log entry in this case). When I try to view the messages for this package, it just gives me back an out of memory error (Which i suspect is a reporting services error, as for some reason you now have to use reporting services to look at error logs for SSIS).

The component "ATG CusID's" (1) cannot run on installed Standard Edition of Integration Services. It requires Enterprise Edition or higher.

$
0
0

Hi Guys,

I'm using Oracle Attunity (Source & DEstination) in SSIS. In BIDS it is running fine. But When I've deployed in SQL agent. I'm getting the below problem. Please help me at the earliest.

Error: 2013-08-03 07:18:18.28
   Code: 0xC00470FE
   Source: ATG to Martini SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW.  The component "ATG CusID's" (1) cannot run on installed Standard Edition of Integration Services. It requires Enterprise Edition or higher.
End Error

Server Version

Microsoft SQL Server Management Studio                        10.50.4000.0
Microsoft Analysis Services Client Tools                        10.50.4000.0
Microsoft Data Access Components (MDAC)                        6.1.7601.17514
Microsoft MSXML                        3.0 6.0
Microsoft Internet Explorer                        9.0.8112.16421
Microsoft .NET Framework                        2.0.50727.5472
Operating System                        6.1.7601

Add Row number

$
0
0

I have 5 Excel source files which i am trying to load in to a SQL database one by one.

I would like to add a row number column for each row. This can be achieved using Script component, but i would like to know how to use the last row number of the first file to be used for the second file's first row. Meaning, i am trying to load excel files from one by one from a folder so for the first file the total number of rows is 100, then when i try to load second file the first row of this file should have row number as 101.

I have created a variable and set it to read/write variable but when i try assigning value in pre execute and post execute it throws the following error. Let me know how to achieve this.

"The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created."

Below is my code

public int RowCount = 0;
    public override void PreExecute()
    {
        base.PreExecute();
        VariableDispenser variableDispenser = (VariableDispenser)this.VariableDispenser;
        variableDispenser.LockForRead("User::Counter");
        IDTSVariables100 vars;
        variableDispenser.GetVariables(out vars);
        RowCount = (int)vars["User::Counter"].Value;
        vars.Unlock();

    }

public override void PostExecute()
    {
        MessageBox.Show("Post Execute");
        VariableDispenser variableDispenser = (VariableDispenser)this.VariableDispenser;
        variableDispenser.LockForWrite("User::Counter");
        IDTSVariables100 vars;
        variableDispenser.GetVariables(out vars);
        vars["User::Counter"].Value = RowCount;
        vars.Unlock();
    }

public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        RowCount = RowCount + 1;
        Row.COUNTER = RowCount;
    }


Sarvan

Import Excel File in SQL Table.

$
0
0

Hi ALL

I have 20 Excel Files in my C drive  and all file have same Format.

File names are like ;

2011_2030

2221_2255

2221_2245

I require all file data in one table name as DATA table with corresponding column that will contain Nameof file.

I need to store this in my Database using SSIS.

Kindly help with some steps.

Thanks


Connection in SSIS can not Impersonate to SSAS

$
0
0

Hi,

I had he problem when I create the SSIS Package to Build SSAS cube. I used the Package Configuration to set the SSAS Connection with

<Configuration ConfiguredType="Property" Path="\Package.Connections[SSASConn].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=ServerName;User ID=user1;Password=Password;Initial Catalog=SSAS_CUBE;Provider=MSOLAP.4;Impersonation Level=Impersonate;</ConfiguredValue></Configuration>

I login windows with DomainName\user2 and run the SSIS package it got the error "Description: Either the user, DomainName\user2, does not have access to the SSAS_CUBE database, or the database does not exist."

If I don't want to add this user to SSAS Server or Create role for this user. Has the other way to impersonate to connect to SSAS?

Need help...

Thanks for Advance

Fei 

The component "Oracle Source" cannot run on installed Standard Edition of Integration Services. It requires Enterprise Edition or higher.

$
0
0

Hi Guys,

I'm using Oracle Attunity (Source & DEstination) in SSIS. In BIDS it is running fine. But When I've deployed in SQL agent. I'm getting the below problem. Please help me at the earliest.

Error: 2013-08-03 07:18:18.28
   Code: 0xC00470FE
   Source: ATG to Martini SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW.  The component "ATG CusID's" (1) cannot run on installed Standard Edition of Integration Services. It requires Enterprise Edition or higher.
End Error

Server Version

Microsoft SQL Server Management Studio                        10.50.4000.0
Microsoft Analysis Services Client Tools                        10.50.4000.0
Microsoft Data Access Components (MDAC)                        6.1.7601.17514
Microsoft MSXML                        3.0 6.0
Microsoft Internet Explorer                        9.0.8112.16421
Microsoft .NET Framework                        2.0.50727.5472
Operating System                        6.1.7601


UniData ODBC Import

$
0
0

I am trying to import unidata into SQL Server 2005 Standard Edition.

 

I can successfully import data into MS Access.  It is simple.  I just tell Access to look at the appropriate system DSN, put in the server, database name and password, and there are all the tables to choose from.

 

The ODBC data source is not one of my choices in the Import/Export Wizard in SSMS.

 

How do I use the Import/Export Wizard to import unidata?

 

Thank you.

Joel

SSIS: Using Sun Java System Directory (LDAP) as a source

$
0
0

Our organization uses Sun Java System Directory 6.3. I'm trying to import several user attributes from this Sun Directory to our data warehouse (SQL Server 2012) on a nightly basis however I'm running into some issues, I can never successfully connect to this LDAP via the SQL Server Management Studio or via Visual Studio while trying to build a SSIS package. I know that its something I'm overlooking, because I can successfully connect to this LDAP using Apache Directory Studio using both Anonymous and Simple authentication using a service account our identity management group setup I'm just not having any luck connecting to it via T-SQL or via an SSIS package.  I know it is specific to using Sun Java System Directory as a source because if I try all four of the below mentioned methods against a sandbox Windows Active Directory they all work as great.  So far I have tried:

  1. Using a linked server from within SSMS and querying LDAP with T-SQL - http://www.pawlowski.cz/2011/04/querying-active-directory-sql-server-t-sql/ 
  2. Using the LDAP SSIS Source Component - http://adssis.codeplex.com/
  3. Using a VB.NET script as a source - http://stackoverflow.com/questions/14927161/how-to-populate-an-sql-server-table-with-users-information-from-active-directory
  4. Setting up an OLE DB connection manager using the Native OLE DB/OLE DB Provider for Microsoft Directory Services - http://social.technet.microsoft.com/wiki/contents/articles/1293.processing-active-directory-information-in-ssis.aspx

Any thoughts on how I can successfully use this Sun Java System Directory as a source?


SSIS Package throwing error in prod environment but same package runs perfect in test , with same database specification

$
0
0

My ssis package is throwing error in processing a files, and the same file gets processed in test environment. i have checked the database in both environment, they are exactly same.  It throws error like 

Violation of primary key constraints, foreign key constraints. how to get this issue resolved 

Exception handling in SSIS Package Dynamic Connection Not Found

$
0
0

SSIS Scenario

I have a SQL variable of type object. It contains all the connection to different servers/databases. I want to connect to those databases one by one and run a query.

Exception Handling

If the SSIS Connection manager(Dynamic connection manger) is unable to find the connection to the server (probably the server is down) I want to Skip that connection (Database/server) and log that into the table and move onto the next Connection (Database/Server). The SSIS package should not crash.

My Implementation

I have Successfully Configured the SSIS package to Use Connection Manager (Dynamic Connection Manager) and Foreach loop to loop through the SSIS variable of type object (not for loop as shown below). but I am not able to skip the Connection if the server/database is not found. it generates error that the server/databsse not found / problem with the connection and the SSIS package fails.

my experience in SSIS is one week old

Any help will be appreciated.


how to workaround the ErrorCode column issue

$
0
0

Hi,

I have a source table that has a column named ErrorCode.

When using the OLE DB source, I am getting a "Duplicate columns in the package" error.

I understand that there is a workaround for this without changing the source column name.

Does anyone know the details of this workaround ?

Thanks



Can you teach us anything about SSIS? Win love and recognition! Become a TechNet Guru for August 2013

$
0
0

TechNet Wiki is looking for great new content, from YOU!

Show us your forum solutions or nifty knowledge nuggets and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can shine.

If you spend any amount of time crafting an awesome answer to a forum question, or just learnt something new, then why not get the most back for your efforts, by posting it to TechNet Wiki.

1) Please copy over any solutions and revelations to TechNet Wiki.

2) Add a link to it on THIS WIKI PAGE, so we know you've contributed

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises, similar to the weekly contributor awards, however once "on our radar" and making your mark, you will probably be interviewed for your greatness, and eventually even invited into other TechNet/MSDN circles!

Either way, winning this award in your favoured technology can only be good for your career! ;)

Feel free to ask any questions below.

Thanks in advance!
Pete Laker


#PEJL Got a good solution? If you invest your time in coding an elegant/novel or large answer on these MSDN forums, why not copy it over to our belovedTechNet Wiki, for future generations to benefit from!

SAP BODS/BO Vs SSIS

$
0
0

Hi All,

Would like to know your thoughts on some dilemma I'm facing. I have scope of working in SSIS(No RS/AS) or in SAP BODS/BO. Which one would be good for my career? For the last three years I was working on SSIS(I'm good at it).

If someone feels this question is inappropriate here, Sorry. Just want your opinions to take a better decision.


Rajkumar

Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR

$
0
0

If I set the SSIS package to ignore the error this column pulls in null values instead of real values. If it's not set to ignore the error this is the error message. The data type is INT. It's failing in the ADO NET Source task. Any ideas?

[ADO NET Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "ADO NET Source" (1)" failed because error code 0x80131937 occurred, and the error row disposition on "output column "XYZ" (749)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.


LineageId String or Integer

$
0
0

Hi,

I'm trying to fetch lineageId of output columns in a SSIS Package. I'm traversing SSIS Package as XML Document in C# code.

No issue in traversing and fetching data from the nodes in the package, but facing issue when I'm trying to fetch LineageID.

I many forums and articles said that LineageId generated in SSIS Package is a Unique Integer value for that particular package, so I'm trying to convert LineageID to an integer value. But it seems to be a String value.

Kindly clarify my doubt. Is lineageid STRING OR INT?

If it is Int then please tell me how to find it.

foreach (var x in NodeCollection)
            {
                var outputCollection = x.Elements("outputColumn");
                foreach (var output in outputCollection)
                {
                    string Name = output.Attribute("name").Value;
                    long LineageId = Convert.ToInt64(output.Attribute("lineageId").Value);
                }
            }

how to work the for loop container in ssis 2008

$
0
0

Hi,

i have 5 records in one table. 

i need to create the tables in table name with this 5 records id value one by one table.

table name - table1

table1

id col1 col2
 2  aa  bbb
 5  bb  eds
 7  cc  fgh

i need create the tables, table1_2 , table1_5 and table1_7

how to work this concept in for loop container..

Regards,
Abdul Khadir.
Viewing all 24688 articles
Browse latest View live


Latest Images

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