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

Unable to understand why my SSIS package stuck

$
0
0

Hi All

I'm trying to learn SSIS 2012 and trying to perform the below scenario but got stuck..

-- Put Foreach loop files container in control flow

--double click on it.

In General

-- Give the name and description

In Collection

Enumerator=Foreach File Enumerator

Folder        = C:\Users\User\Desktop\Babu\Source

Files          = *.*

Retrieve file name =  Fully Qualified

Define variable =Path , type string ,scope package

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

After configuration, I execute it successfully.

after that I put script task to show the values in path variable and did the following steps..

assign variable "Path" to Readonly variable some thing like below

--- Read only Variables User::Path

click Edit Script and under public void main I write the following code:

 

publicvoidMain()

{

// TODO: Add your code here

           System.Windows.Forms.

MessageBox.Show(Dts.Variables["User::Path"].Value.ToString());

Dts.TaskResult = (

int)ScriptResults.Success;

}

 ---------

but when I try to execute my package then I can see only first value in path variable and after that my package got stuck and still trying to performing some thing. Can some one help me out to execute my package properly and get all values in "Path" variable... Appreciate your help.. Thanks

 

 

 

 

 

 



Error 0xC00160AE

$
0
0

I am getting the following error when running a job using SSMS:

 Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.   Started:  8:36:18 AM  Could not load package "\MSDB\Active Stock Data" because of error 0xC00160AE.  Description: Connecting to the Integration Services service on the computer "PHENOMVII" failed with the following error: "Access is denied."    By default, only administrators have access to the Integration Services service. On Windows Vista and later, the process must be running with administrative privileges in order to connect to the Integration Services service. See the help topic for information on how to configure access to the service.  Source:   Started:  8:36:18 AM  Finished: 8:36:18 AM  Elapsed:  0.031 seconds.  The package could not be loaded.  The step failed.

I have granted full control of Microsoft SQL Server Integration Services 11.0 to user "everyone" out of desperation. 

Any tip to remedy this will be greatly appreciated. 


Hong

Programmatically add output columns to asyncrhonous SSIS Script Component (in data flow)

$
0
0

Hi guys,

is there any way to dynamically create output columns for SSIS script component, using input columns as a reference?

Cheers,

SAP HANA or Microsoft .Net career?

$
0
0

I am in deep problem to set my career from technology selection perspective.

 

I have more total more than 8 years of Experience, 4 years in .Net and platform, 4 years in VBA and 2.5 years in SAP BI. Last 4.5 years I am working mainly in SAP BI and VBA and self practice on .Net (http://alap.me I am developing) and have 2.5 years onsite experience for SAP and VBA combined role.

 

Now I have two opportunities, in .Net a banking (enhancement-support type) project and in SAP HANA development/implementation project. Personally I can not able to love SAP BI (due to click based and non-coding type technology) and I like C# style coding. However HANA is much like web development (SQL and Javascript-jQuery, I know well jQuery and javascript by self practice) but I have to learn HANA from initial but probably I can learn it easily as I know SQL and java script.

 

Now I can not able take decision which I should choose .Net or HANA, because I have experience in .Net and MS technology for a long time or should go for HANA project and start learning it, as it has good future (probably).

 

Suggestion from different angle is highly acceptable.

Regards


See my blog at http://socketprogramming.blogspot.com/


Error at Import XML: A Component does not have any inputs or outputs.

$
0
0

I have very simple XML source and OLE DB Source in Foreach Loop Container, but seem to get error. Likely because of XML or XSD.

XML:
<?xml version="1.0"?>
<Customer xmlns="CustomerXSDSchema">
        <CustomerName>Microsoft</CustomerName>
        <CustomerNumber>1</CustomerNumber>
 <CustomerCountry>USA</CustomerCountry>
</Customer>


XSD:
<?xml version="1.0"?>
 <xs:schema xmlns:schema="CustomerXSDSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">

 <xs:element name="Customer">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="CustomerNumber" type="xs:string"/>
       <xs:element name="CustomerName" type="xs:string"/>
       <xs:element name="CustomerCountry" type="xs:string"/>    
   </xs:sequence>
   </xs:complexType>
 </xs:element>

 </xs:schema>


Kenny_I

BI environment Setup (SQL Server 2008 R2)

$
0
0

Hello Experts,

I am new on the BI world. am just started to study BI MS tool using SQL Server 2008 R2 & VS 2008.

could you please send me a link for how to setup the proper environment, I mean SQL severs, what to install, VS version, any extensions if needed. I can not find any tutorial for setup proper environment.

Thanks

Converting and applying Substring to data from a Text File before inserting into destination table

$
0
0


Hello my friends

I have a text file with values like this: 1.00, these values are not for calculation. I need to convert them to integer, from 1.00 to 1.

I used a derived Column like this:


The idea is to use the substring to remove all but the first character on the left.

Then I user a Conversion task like this:

I get an error message: Cant insert between types DT_STR and DT_14, not supported.

Whats the way to do this? Is this even a  good approach, even if it works?

Thanks for helping.

OG


Must I use an external connection when using Sql Server configuration tables

$
0
0

I am using Sql Server config settings successfully. It's my understanding that you must use an environment variable or an XML Config file to point to the table that houses the config settings (for other connections, etc.).

This post implies that you should use an environment variable (and not an XML file), but it's in the context of using Sql Server tables.

This MSDN Best practices article also indicates that you should use an environment variable when using Sql Server d.b. configurations, i.e.,

"If you are using a SQL Server configuration, then you can and should make it an indirect configuration. As explained earlier in this article, when using indirect configurations, an environment variable stores the location of the configurations themselves." 

So I need to know, MUST I use this external (indirect) reference (e.g., an environment variable or XML file) to point to the table that houses the config settings (for everything else) ? Or - could I put the connection to the table that houses the config settings in that same table ? or maybe another table ? 

The use of an environment variable or XML file as a pointer to the Config settings table makes sense to me . . . if you have the connection info to the config settings table IN THAT TABLE - this is a self-referring (and hence self-defeating) approach.


Execute sql task in Foreach loop container keep on executing !!!

$
0
0

 


Hi All

Execute sql task keep on executing  for simple update of one row in foreach loop container :

 
like i am using below mention query to update the status :

"Update  BASE_CUBE_REP_CONFIG
SET status = 0  where Mode_Of_Execution='Replication'  and NEW_CUST_CODE =  '" +  @[User::NewCustomerCode] + "'"

In Parameter mapping , i am writing as :

User::NewCustomerCode input


Once i run the package , it's keep on executing at ExecuteSqltask and never update . Update table size is very small .

Any reference or guide will be very helpful .

Thanks,
Alok

What is the equivalent function in SSIS for the SQL query?

$
0
0

Hi,

    There are some special characters in my table. I am using the following query to correct them. here is the query.

REPLACE(EmpID,CHAR(26),'').

If i use this query, then all the special ASCII characters will become blank (space) .

When I try to use the same query in SSIS Derived column transformation , it does not work.

Can you please tell me what is the equivalent operation in SSIS for this query?

SSIS framework - Design decisions

$
0
0

Hi,    

        We are trying to build a SSIS framework in my company. We have 200+ feeds written in C++, C#, Java and we want this framework to migrate all these feeds. All feeds are launched by Appworx and follow similar pattern. Step 1: Get FTP credentials from database. FTP Download the files to the file system. Step 2(optional): XSLT transformation, Step 3: Parse and Load the file into a table. We are planning to create 8-10 child packages (2-3 packages to support different FTP tasks, 5-6 packages to support different file formats). And then we want to create a Project (Parent package which maintains the variables) for each feed which calls these child packages plus the file to table mappings.. Each Project will have a package configuration as xml file or DB config.. Appworx will kick off each Project one by one.  

    Is this design feasible? Or is there a better approach or a better tool to do this?  The below is the list of design decisions we are facing.

  1.       Is it recommended that the parent package references the child packages as Project reference or External reference? We prefer external reference because if a child package is upgraded we just overwrite the old package in one place on the network. If we use Project reference then each child package is shipped along with the parent package and we need to deploy all projects which use the child package.
  2.       The parent package cannot have both parameters and variables. Variables are preferred because Child packages will be able to set parent variables but not its parameters. Is there a need to use parameters? Also, how can we force a parent package to define variables needed in the child package? Like a reverse interface implementation concept.
  3.       Is deploying projects as SSIS services or on File system better? We prefer file system as its easier to update.
  4.       We want to be able to turn on/off execution of child packages. This can be achieved only if the Project – Child packages mapping is configurable in the xml file or database.  Example: lets say my project has Child1,2 and 3 where Child 1 is a FTP. The first time the project runs, child 1 is complete but 2 fails. I want to be able to re-run the project with just 2 and 3. 

Your insights are much appreciated. 

BTW: I referred to Andy's blogs about SSIS framework. http://sqlblog.com/blogs/andy_leonard/archive/2011/09/16/designing-an-ssis-framework.aspx

But his examples dont include passing variables between parents and children which he admits is complex,. 


Error using different windows Users

$
0
0

Hello everybody, 

2 developers use SSIS on one server, each one have his own windows user, both Administrators. we work on the same SSIS package. 

The packages have some steps to create TXT files for errors, all of them are created on the same folder: C:\SSISErrors\

When we run the package (Using GUI, not deployed), if I run the package with Windows UserA, and there is no error file on the folder, or if the previous error files were created with the same user, there is no error, however if User B run the package, it send error that have no permission to writte on the TXT file, but both users are Administrators on the Server. 

so the workaround was to delete manually the files and wait for the package to re-create them and this task cannot be acomplish using SSIS either. It send errors because have no priviledges to do it. 


Gilberto H.

configuring ADO.NET connection manager to execute stored procedure

$
0
0

Hi ,

I'm trying to configure ADO.NET connection manager to execute SP which has 2 parameters  but it errors out with the following error :

[Execute SQL Task] Error: Executing the query " [dbo].[xyz] " failed with the following error: "Could not find stored procedure ''.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

My stored procedure has 2 input parameters ( @Startdate and @enddate)  which loads a table  based on given dates.

Could any one guide me through process to configure ADO.NET connection manager.

Thank you ,

Vishal.

SSIS 2005 - file based packages - overwrite package to update or re-import to read config file changes?

$
0
0

If I make an update to a package and am using file-based deployment to SSIS 2005, and I make a change to the config file, it seems the config file settings for connection settings, UNLESS I re-import the package again.  

Anyone notice this?

mispelled partition filegroup when addindg next used

$
0
0

Hello, I use the command:

ALTER PARTITION SCHEME [Data] NEXT USED [fgrp_Scanner_2013]

to assign the new filegroup for next year data, but I misspelled the filegroup name, now it looks like:

CREATE PARTITION SCHEME [Data] AS PARTITION [PF2_Left] TO

(

[fgrp_Scanner_2006],

[fgrp_Scanner_2007],

[fgrp_Scanner_2008],

[fgrp_Scanner_2009],

[fgrp_Scanner_2010],

[fgrp_Scanner_2011],

[fgrp_Scanner_2012],

[fgrp_Scanner_2013],

[fgrp_Scanner_2013]

)

Yes, my mispell is that I add 2013 instead of 2014 on the last one.

Please let me know the options to add the correct one.

Note, Partition function has not been edited yet. Just the schema.


Gilberto H.


multilingual text analytics

$
0
0

Could you please share me the good approach for doing multi-lingual text analytics,  In SSIS Term Extraction transformation works only on English language.

Thanks

Mayank 


Mayank Tripathi Sr Sql Developer


Event OnExecStatusChanged

$
0
0

Hi there,
does anybody knows, when the event OnExecStatusChanged will be raised?
I have activate the Eventhandler for this event on severel tasks, but none of them responded.
Thanks.
Bernd

How to pass values from Custom UI in Custom Task in SSIS

$
0
0

Hi,

I have built successfully built a custom task in SSIS where I send a notification to an internal notification system. I have now also built a custom UI for this component so the user can add a custom message to this internal messaging system, however, I cannot figure out how to save the user's inputs in the custom UI and apply them to message that is being sent.

I have the following class titled 'InternalMessageTask' which currently sends a message: (this will send an internal message with the text "This Is a test message").

public class InternalMessageTask : Task { private string _Message = "This Is a test message"; public override DTSExecResult Validate(Connections connections, VariableDispenser variableDispenser, IDTSComponentEvents events, IDTSLogging log) { // Does some validating } public override DTSExecResult Execute(Connections cons, VariableDispenser vars, IDTSComponentEvents events, IDTSLogging log, Object txn) { // Send the message SendInternalMessage(_Message); // This is a method that takes a string as an input and sends it to an internal notification system }

public void SendInternalMessage(string MessageToSend)

{

// Some Code To Send a Message.

} public string Message { get { return this._Message; } set { this._Message = value; } } }


Now I have added the following:

class InternalMessageInterface : IDtsTaskUI
{
	private TaskHost _taskHost;
	private IServiceProvider _serviceProvider;
	private InternalMessageUI _editor;
	public void Initialize(TaskHost taskHost, IServiceProvider serviceProvider)
	{
		_taskHost = taskHost;
		_serviceProvider = serviceProvider;
		_editor = new InternalMessageUI(_taskHost);
	}

	public ContainerControl GetView()
	{
		return _editor;
	}

	public void New(IWin32Window parentWindow)
	{
		return;
	}

	public void Delete(IWin32Window parentWindow)
	{
		return;
	}
}

And I also have a form titled 'InternalMessageUI' with the following code:

public partial class InternalMessageUI : Form
{
	private TaskHost _taskHost;
	private string _MessageFromUI = "";

	public InternalMessageUI(TaskHost taskHost)
	{
		InitializeComponent();

		this._taskHost = taskHost;
	}

	private void _BtnSave_Click(object sender, EventArgs e)  // Save Button saves the message input by the user
	{
		_MessageFromUI = MessageTextBox.Text.Trim(); // MessageTextBox is a textbox on the form that a user will use to enter a message to send.
		this.Close();
	}
}

So basically I need to pass the value from _MessageFromUI in the InternalMessageUI class to the _Message variable in the InternalMessageTask class. How can I do this?

Is there any way in SSIS that I can sequentially read through a provided file and then re-format it so I can then process it?

$
0
0

A vendor provided file is in XML format. But the data types are all the same. So SSIS is struggling to process it using XML Source. Ironically, the file's extension is ".xls". It appears fine within Excel, however, behind the scenes it is indeed in that XML format. So the Excel Source chokes oin it.

Is there anyway in SSIS that I can read through this crap file and process the data sequentially and re-format it, probably as a .csv file?

Please let me know your thoughts. Thanks for your review and am hopeful for a reply.

PSULionRP

Send Mail Task "From" format in SSIS 2008.....

$
0
0

I want to use an automated SSIS package  to send an email with a "From" line like this:

"Big Guy" <SSISMavin@mycorp.com>

To my surprise entering the above syntax in the Send Mail task "From" line actually generated an email with the desired From line BUT the SSIS designer accurately states "the Address in the From line is malformed. It is either missing the "@' symbol or is not valid".  What is the correct SSIS Format so both SSIS and I will be happy?


TIA,


edm2

 

Viewing all 24688 articles
Browse latest View live


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