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

How to email error messages?

$
0
0

Hi,

I am very new in SSIS and just have a very basic question: how to capture whatever error message in the whole package, and send it through an email?

All the postings I could find talks about how to fix a car engine or how to install LPG but no posting talks about how to start the car!

Thanks!


Dynamic filenames

$
0
0

I have multiple excel and text files that i want to import to sql. The importing part is easy but I am getting these files from a 3rd party so some days the file will be filename.txt or filename.xls and on another day it will be filename_date.txt or filename_date.xls

so how do i go about in having a condition that checks for this? (I currently use SSIS 2005)

Flat File Destination failed the pre-execute phase and returned error code 0xC020200E.

$
0
0

In the SSIS package after loading the data from multiple XMl files (around 80) at the end I'm loading the data from SQL Table to Flat file(.csv) to create a summary report and I'm getting the below error if i scheduled this package in SQL Agent.

Flat File Destination failed the pre-execute phase and returned error code 0xC020200E.

If I run the package manually I'm not getting this error. Please advise.

extracting a .gz file through batch command using winrar software

$
0
0

Hi,

I want to unzip a .gz file using winrar software in a batch file using batch commands,  How can i do this.

any information will be helpful.


Nagaraj

Failed to set information for row X, column Y into the buffer

$
0
0

Hi,
We have a dtsx running on a SQL Server 2008R2 production server. The dtsx runs 90% of the time successfully but the other 10% always fail on the same error listed below 'failed to set information for row x, column y into the buffer".

We're executing incrementally, so you'd be expecting every consecutive run after the failure to fail as well. But on second runs it will execute successfully so it's not date related but something in the SSIS.

Our production machine has 64GB RAM.
Does anybody know this issue?

Message Executed as user: ********. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  4:01:21 PM  Error: 2012-10-16 16:02:53.01     Code: 0x80004005     Source: Dwh_Dim_Facebook_Campaigns      Description:   End Error  Error: 2012-10-16 16:02:53.01     Code: 0xC0209013     Source: Dwh_Dim_Facebook_Campaigns Merge Join On text_ad_id [2025]     Description: Failed to set information for row 503, column 47 into the buffer. The error code returned was 0x80004005.  End Error  Error: 2012-10-16 16:02:53.01     Code: 0xC0047022     Source: Dwh_Dim_Facebook_Campaigns SSIS.Pipeline     Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Merge Join On text_ad_id" (2025) failed with error code 0x80004005 while processing input "Merge Join Right Input" (2027). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.  End Error  Error: 2012-10-16 16:02:53.10     Code: 0xC0047022     Source: Dwh_Dim_Facebook_Campaigns SSIS.Pipeline     Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Sort According to text_ad_id" (2111) failed with error code 0xC0047020 while processing input "Sort Input" (2112). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:01:21 PM  Finished: 4:02:53 PM  Elapsed:  92.181 seconds.  The package execution failed.  The step failed.


Can't connect to SSIS from client machine

$
0
0

HI All

We have following scenario:

1. A 2-node failover cluster.

2. 1 instance of sql server 2012 is installed on node-1 and 2 instances of sql server 2012 are installed on node-2

3. we have Integration services installed on node-2 which is running under NT Service\MsDtsServer110 account

4. We have configured DCOM and added users

5. We have configured Microsoft SQL Server Integration Services 11.0 under component Services (DCOM Config) and allow the users with proper rights.

6. We have checked the MsDtsSrvr.ini.xml file and it is pointing to correct servername\instancename

7. We have added firewall rule to allow SSIS services

Now when we connect from SSMS on the server it connects with integration services and we can browse through it but when connecting from client machine we are getting errors.

Can some one please help us in resolving this issue.

Regards

Harris

Converting into Text files (Source is FTP server) SSIS

$
0
0

Hi All,

I had a small issue I was pulling files from FTP Server by Using Execute Process task 

Everything is working fine but the problem is when I am dropping that files into the folder those should be text files

Now the files in the FTP Server like this 

these should come in as text files in the folder

where I need to write the expression could anyone tell me please

Thanks,

RK

Import muliple Access databases into SQL server

$
0
0

I have over 300 Microsoft Access databases,  all contain five tables with exact the same structures.  I would like to load them intoSQL server automatically, so I end up with just five SQL tables.  Currently doing one by one, using IMPORT WIZARD.  Any help welcome. 

Bill


Need help reading negative number from flat file source

$
0
0

Hi All,

I have a flat file source that contains a negative sign in the value and need to know how to read it in and get the correct value for output.

Example, 0000000000-2000 should be outputted as -20.00

The column is defined as 16,2 in the data dictionary. If this were a true number (no signs), I could use the following expression in Derived Column:

ISNULL(TP_PAYMNT_AMT) ? 0 : TP_PAYMNT_AMT / 1000

But this doesn't work. I have the column defined in flat file connection as numeric 18,0.

How do I define the column in flat file connection and what expression do I need to get the desired result (-20.00)? How should the column be defined in my SQL table to handle signed fields?

Thanks for your help.

Dave

How to expose TaskHost properties using a Script Task

$
0
0

Hi

I have built a custom logging feature through the use of the Execute SQL Task SQLStatementSource property, using dynamic SQL that utilise System variables and event handlers.

There are some things that are not available through the help of System variables such as task result, tast status etc and I would like to capture these details for the tasks in my packages.

I have learned of the TaskHost class - http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.taskhost.aspx and wanted to know is it possible to get the following properties using a script task on an event handler -

ExecutionDuration

ExecutionResult

ExecutionStatus

StartTime

StopTime

I would like to capture these properites and put them into variables using the script task and then my dynamic SQL within the SQLStatementSource property can capture as variables and output when an event handler fires.

This is what I would like to and want to know if it what I have described is possible?

Any pointers to help me get started would be good as I am still getting familiar with scripting and the Ingteration Services Object Model.

Thank you

Import Excel Sheet has a higher 1024 column in SQL Server.

$
0
0

Hi,If i have a excel file more than 1024 columns, then how can it uploaded into sql table through SSIS.

PDW Destination Adaptor

$
0
0

Hi All,

Heard a lot on PDW and the destination adaptor it has got for SSIS too. Has anybody have an idea of whether this adaptor comes as part of Parallel DW configuration or is an independand downloadable available? Can some one point to the right spot?

Run a SSIS package using jobs

$
0
0

Hi,

I am using mssql 2008 and i have created a SSIS package using dbname->task->import option and I have called the package using sql server agent jobs like the below,

xp_cmdShell 'dtexec /DTS "\MSDB\test_package1" /SERVER "myserverip" /MAXCONCURRENT " -1 "  /CHECKPOINTING OFF  /REPORTING V > D:\mssql7\access_export\log'

test_package1 is the package name.

When i run the job, it creates log files which contains,

"Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 64-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.

Started:  12:38:09 AM
Error: 2012-10-23 00:38:09.55
   Code: 0xC0016016
   Source:  
   Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.
End Error
Error: 2012-10-23 00:38:09.72
   Code: 0xC00F9304
   Source: test_package1 Connection manager "DestinationConnectionExcel"
   Description: SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE DB provider is available.
End Error
Error: 2012-10-23 00:38:09.72
   Code: 0xC00291EC
   Source: Preparation SQL Task 1 Execute SQL Task
   Description: Failed to acquire connection "DestinationConnectionExcel". Connection may not be configured correctly or you may not have the right permissions on this connection.
End Error
DTExec: The package execution returned DTSER_FAILURE (1)."

It has given three errors like above.

Actually,

1. I tried to run the package separately(only in Integration Services) and it gives the exact result.Only the error comes when I call the package using jobs.

2. The jobs and packages are running successfully in mssql 2005 but when I upgrade to mssql2008 it has given error.

I am really stuck with this problem and please guide me to solve this issue ASAP.

Thanks in Advance.

Regards,

Samsul hudha .M.Y

SSIS Problem while exporting numbers stored as text in Excel

$
0
0

HI All,

In my SSIS package when I am exporting data from SQL Server to Excel-2007. The numeric data are stored as String in Excel and flag is showing in every cell saying that number stored as text.

Any help on this problem is appreciated.

Thanks

how create a DTS to copydata from all tables of a database to all tables of the other database

$
0
0

hi,

i have two databases.now my requirment is to copy data of all my tables from one database to the other but the issue is that i have to copy on the bases of datefield available in one table.now let say i have to copy only those records where date year> 2010

i am fine with the copying data from that table where date is available but in other tables i just have the key of that parent table where date field is present.

now tell me how to create a single SSIS which copy my data in appropriate way..........



insert data from file into sql table

$
0
0

hi
i have flat file like this

TH*4.2*876545*P~~IO*3456*color~

now i have two tables

create table table1
(id nvarchar(10),
 t1  int,
  t2 int primary key,
  t3  nvarchar(5),
i1   int foreign key table2(i1))

create table table2(
id nvarchar(10),
i1  int primary key,
i2 nvarchar(10))

now i need to insert this file record into table describe below.

i cannot do it mannualy.

if i use ssis package ,how can i1 value of table 1 will automatically insetered.

any other way

thanks

how to insert blank into bigint column in SSIS

$
0
0

Hi,

I have to implement a business rule in SSIS package. Rule says, Column C (integer) will be blank if column A(string) and Column B(string) are equal. Could you please tell me how to implement this in SSIS?

OLE DB configuration in SSIS package run from Command Prompt

$
0
0

Hello

I think this is probably a very basic question but I'm new to SQL so having trouble figuring this out.

I am executing an SSIS package from the command prompt using the dtexec command. My SSIS package moves data from a flatfile source to a table in a SQL database. I'm using the /connection to configure my flat file source in the command prompt and this is working fine.

However I'm having trouble configuring the location of the SQL database (I want to override the connection in the original package through the command prompt). My code looks like this (I'm passing parameters into the command prompt which will replace the %1 and %2):

dtexec /f "C:\Users\s813\Documents\Visual Studio 2008\Projects\Import_Valuation_RPTs\Import_Valuation_RPTs\Import_NL_Run.dtsx" /CONNECTION "Import_NL";%2 /CONNECTION DHX31118.RPTs.dbo.RPT_Run1;DHX31118.RPTs.dbo.RPT_Run%1

I'm quite sure I've specified the connection to the SQL database incorrectly but I'm not sure how to specify it? The SQL Server is on my C drive.

Any help would be much appreciated!

Joining two set of files in 2 folders

$
0
0

Hi,

I have two folders. FolderA and FolderB. I have File1, File2..File10 in each of the folders.

I want to load by joining these two folders' files. File1 in FolderA with File1 in FolderB and so on.

Joining the respective slimier files and load it in table. For reading one set, I can use For each container .

But how to read two set of files and join?. Please suggest.


Porus

How to create a table dynamically based on the metadata of Excel Source in SSIS

$
0
0

Hi All,

How to create a table dynamically based on the metadata of Excel Source In SSIS.  Suppose i have one excel file having 20 columns with different datatypes . so i need to create table with the 20 columns with datatypes of Excel sheet .

 


Viewing all 24688 articles
Browse latest View live


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