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

opening a rowset for failed. check that the object exists in the database

$
0
0

Hello,

I have a SSIS package where im importing data from MS access database file .MDB. I chose Microsoft JET 4.0 OLEDB provider. When i select a table and preview the data, im getting the below error.

Error at Data Flow Task [OLE DB Source [1]]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E09.

Error at Data Flow Task [OLE DB Source [1]]: Opening a rowset for "_tblDateDateEarnedMismatch" failed. Check that the object exists in the database.

But it is working for the other tables . Can someone please help me out with this error?

Regards,

Ravi


Convert from a fraction to decimal in SSIS

$
0
0

Hi Gurus, 

I have a field1 that has fraction values like 33 4/5 , 32 1/5 etc.. 

I want to convert them to decimals like 33.8, 32.5 etc.

How can I do this in SSIS?

I tried to cast using decimal() , but it's not working. 

Thanks

Using Variables and Parameters as Expressions

$
0
0

Hi All

I'm stuck with one scenario and your help will be highly appreciated.

I did the following steps.

1- Drag Foreach Loop Container in Control Flow

 

2- Configure it like above attached picture.

3- Create parameter BankFileSourcePath,Datatypes =String, Value=c:\test

4- Create few variables see picture below.

5- Now I want to copy all source files into destination by using File System Task and I configure it like below :

Destination Connection

IsDestinationPathVariable = True

DestinationVariable =User::BankFileDestinationFile

Operation

Operation=Copy File

Source Connection

IsSourcePathVariable = True

SourceVariable               =User::BankFileName

But the problem is that I'm getting cross red sign on File System Task and it shows the following message .

"Variable BankFileName is used as source or destination is empty...

Your help in this regard will be highly appreciated. Thanks

Regards

Muz


VS2012 Closes When Trying to Add ADO.Net Connection Manager

$
0
0

I'm using SSDT-BI 2012 v11.0.3402.0 (I also have VS 2012 Premium w/ update 4). 

When I try to add an ADO.Net connection manager to a package (right-click in Connection Managers & select New ADO.Net Connection), the application window closes, and by that I mean the window disappears, but the devenv.exe process is still running (as seen in Task Manager) & it continues running until it is killed.

Any suggestions.

Thanks

How to generate an XML file from SSIS (based on an XSD)?

$
0
0

I have an XSD that describes an XML format. I also have a sample XML file as well from the XSD. I am trying to understand SSIS's capability to generate the XML file in an ETL process. I would need to create the XML file based on the XSD that I have. It is safe to assume that all the data elements are in the DB that I am incorporating in the ETL and it is also safe to assume that the data in the XML may be from multiple different tables (so massaging is probably necessary). 

Would this be a job for C#/VB or can I do this through an SSIS process/task? Please help me understand my options. Thanks.

SSIS: Sequence Container fails, but each task within container executes OK

$
0
0

Hello,

I have an SSIS package that loads data to DW database, transforms data and processes cubes. The package is running fine when the source and DW databases are on the same SQL 2008R2 server.

I moved DW database and cube to SQL 2012, however the source data remains on SQL 2008R2.

When I changed SSIS data destination connections to the new server (SQL 2012), I cannot execute containers anymore (containers have multiple tasks with OLE DB Source / OLE DB Destination components).

I can run each separate task (transferring data from SQL 2008R2 tables to SQL 2012) within BIDS – no problem. But when I try to execute the whole Sequence container with collection of the above-mentioned tasks, it fails with the following error messages:

[Source - … [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "..." failed with error code 0xC001A004. 

There may be error messages posted before this with more information on why the AcquireConnection method call failed.

[SSIS.Pipeline] Error: component "Source - ..." (1) failed the pre-execute phase and returned error code 0xC020801C.

Any ideas why?

Thank you for your help in advance!

Lana

Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

$
0
0
Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

Error 0x800A0BCD in a foreach loop container

$
0
0

Hi

I ve two nested foreach loop containers, all tasks included inside run well but when i launch the package i meet a error :

0x800A0BCD to the output of theinternalforeach loop container

How to see what happens wrong and how to solve this issue ?

Thx



How to implement without checkpoint same functionality

$
0
0

Hi,

Any one can you help on this step by step.

fetch data from prod servers

$
0
0

Hi all,

can anyone help me in developing package with below requirement:

requirement

 Excel sheet contains all the  emp_ids ..these emp_ids should be searched in Emp DB and return the output to an new excel sheet.

Excel sheet

Emp _ID

111

  222

33

 ------à         SQL Server-------------à    Output(another excel sheet)

Emp _ID

NAme

111

aaa

  222

bbb

33

cccc


Whenever package runs output of excel sheet should be with current date.

Input values (ie. Emp_id ) keeps on changing).  So It has to be generalised.

Monitoring the execution of a SSIS 2012 package running inside a job

$
0
0

Hi,

I need to monitor the execution of a SSIS 2012 package in running state without stopping the job that contains it. In the package it hasn't activated the SSIS logging.

How can I control which SSIS task has been executed or which stored procedure has been launched inside a SSIS task?

Thanks

Why Is My Custom Task Showing "Task Failed To Load"?

$
0
0

I developed a custom task to wrap an old program.

Running on dev machine via VS2012, works fine.

Deployed to the server, and now it shows the above error during validation, even when I run it by right-clicking and selecting "Run Package"...

What sort of troubleshooting steps am I looking for?

SSIS Package failing due to buffer issues.

$
0
0

Hi All,

The buffer manager detected that the system was
low on virtual memory, but was unable to swap out any buffers. 28 buffers were
considered and 28 were locked. Either not enough memory is available to the
pipeline because not enough is installed, other processes are using it, or too
many buffers are locked.

Please refer the error above I am facing in one of the SSIS package I am working on. The strange part is that it does not fail all the time. Sometimes it fails and sometimes it ran fine. Some times it fails for 700 rows and sometime3 it works for 1500 rows. Need some quick help on this.

Thanks in Advance

Archan

SSIS - DB2 poor speed, how to increase?

$
0
0
Hello.
Im getting data from many DB2 servers in the intranet of my ogranisation (many cities like 200 miles away from each other).
Suddenly I found, that I have extremely poor performance getting data from the one DB2 server (others is okay). It consists in very slow string fetching.
When I run a job with data floa task which does "select *" from view, it starting to give me strings in one minute (3 million of strings which is fast), but it fetching strings is VERY slow: like 1000 strings per 20 secs, then wait 10-15 secs, then again 1000 strings.
Technical details:
Running SQL Server 2012 and Visual Studio Shell 2012.
Getting data through ODBC via IBM DB2 CLI drivers, also tried MS OLED DB for DB2 v 4 and its even slower. Checked ping -t and it was fine, no packet loss with ping like ~50-60. I also tried turning off any destination using multicast as destination.

So I end up in this dead-end situanion, and don't know what to do.
Please, share your experience, how can I find a bottleneck which ruins all the speed.  

Call an Oracle Sequence in a Data Flow to add a Primary Key

$
0
0

Hi,

I am trying to find a way in SSIS 2012 to call an Oracle sequence in a data flow in order to assign a primary key to each row before inserting into the Oracle destination.  I am migrating from IBM DataStage and within this tool there is a Surrogate Key stage which you can link to an Oracle sequence to drive it.  I have looked all over the net and can't find a suitable way to generate a primary key from an Oracle sequence within SSIS.  Is this at all possible?  I would rather avoid creating triggers on the destination table.

Thanks in advance.

David


SSIS Script Task - Select Into Table Code

$
0
0

I'm trying to come up with a C# code on Script Task. My C# is not that great. What I'm trying to achieve looks like this in TSQL:

SELECT*INTO Server2.DatabaseNameXX.Sample.@MyTable

FROM Server1.DatabaseName.dbo.@MyTable

Please note that the Script Task will be inside a Foreach Loop Task and hence table name is a variable.

Can someone please kindly give me a sample C# code to address the above requirement. The sample code should include how I should handle the @MyTable variable as well as connection managers for the two servers.

Many thanks,


Mpumelelo

SSIS 2012. Loop over packages and call them passing a parameter

$
0
0

Hi everybody,

I'm using SSIS 2012 with the new concept of configurating of packages with parameters (project deployment model). I'd like to achieve the following: I have a number of test packages which names start with Test*. I would like to have a MasterTest package which loops over all Test* packages in the project and executes them. Additionaly I need to pass a parameter from MasterTest package to each of the Test packages. That's pretty much all, I don't know how can I achieve this.

Things I've already tried:

1. In order to call all Test packages without hardcoding each of them in the MasterTest I need to use External Reference in the Execute Package Task (and not Project Reference). If I use External Reference, I can't pass any parameters to the child package (Parameter Bindings tab doesn't allow this).

2. I could've used the old way with parent/child configurations, but this option is not available in the new project deployment model ("Package Configurations..." menu item is not available)

3. I could define a project parameter which will be read by child Test packages and call them with External Reference from the MasterTest, but can I somehow change the parameter value from the MasterTest package (in runtime)?

Help is very appreciated.

Event logging in Parent-Child packages

$
0
0
Hello,

I have a set of Parent-Child SSIS packages. A Parent package invokes a bunch of child packages via "Execute Package Tasks".

I have set up custom event logging (to a SQL table) inside both Parent and Child Packages' Event Handlers (OnPreExecute, OnPostExecute, OnError).

I noticed that when a Child Package raises an event, both the Child Package's event handler and the Parent Package's event handler get fired, thereby creating duplicate event logging entries.

So, as a quick work around, I disabled event handlers in Child packages hoping that the Parent Package's event handlers will catch and log all events nicely. However, when the Parent Package's event handler writes event details to the table, it uses theParent Package's System::PackageId, System::PackageGUID and System::PackageName rather than that of the Child Package that originally raised the event!. So, my event log table records all events as if they were raised by the Parent Package!

Is it possible to disbale event bubbling up from Child Packages to the Parent package?

What options do I have to fix this problem?

Thanks

SSIS: Input Excel File Name (Includes Report Date) From Dir Into Relative ReportDate Column of Existing Table in SQL-Server

$
0
0

I have a directory of Excel files that includes the date in the file name; they represent reports. I have already imported all the data into sequel server from the excel files but need to attach the date from the File Name to each of those records that were imported into Sql-Server.

Example Dir List.

A_201008.xls
A_201009.xls
A_201010.xls.........

The following is my C# ScriptTask to fill an array of File Names:

usingSystem;usingSystem.Data;usingMicrosoft.SqlServer.Dts.Runtime;usingSystem.Windows.Forms;usingSystem.IOpublicvoidMain(){// TODO: Add your code herestring[] files =Directory.GetFiles(@"\\S\Apps\Files\", "A*.xls*", SearchOption.AllDirectories); int Flag = 0; string dir = @"\\S\Apps\Files\";string[] files1;int numFiles; files1 =Directory.GetFiles(dir); numFiles = files.Length;for(int i =0; i < numFiles; i++){string file = files[i].ToString();int file1 = file.IndexOf(dir,StringComparison.CurrentCultureIgnoreCase);if(file1 !=-1){MessageBox.Show(file);Flag=1;}}

if(Flag==0){MessageBox.Show("No Matches Found");}Dts.TaskResult=(int)ScriptResults.Success;}

The MsgBoxes are the just for testing the script and will be removed.

My question is this. What is the protocol in SSIS to grab the File Names from my array to insert them in the relevant rows of my table in SQL-Server?

Please Note that I already know what to do to trim the file names for the date.

Thanks


Retrieving Integer with XML Task

$
0
0

G'day All,

  I have an XML file in which I am trying to pull one element, an Integer, into a variable via the XML Task. As I wish to use this variable within a subsequent loop, I need to extract as an int but the XML Task insists on having it defined as a string. Can anyone provide ideas on how I can suitably obtain this value as an int?

I am not able to pull as a string and then do a cast to an int (populating another variable) nor set the XPath operation to "Evaluation" and run a "number" function on the field. As someone must have needed such a requirement before, how is this resolved?

TIA

Viewing all 24688 articles
Browse latest View live


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