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

DTS Package Tasks fails but sent success mail

$
0
0

Hi All,

When i run the DTS package a task get failure, but eventhough it is going to the next task to run. How should i stop the task fails and run corresponding failure steps(send mail tasks). Please explain me for this.


Dhinesh Kumar,


Datetime column Loading issue from Oracle to Sql server

$
0
0

Dear all

I am loading the data from Source (Oracle ) to Destination (Sql server 2008 R2) database

Source Column date format is

1900-01-01 00:00:00.0000000
1900-01-01 00:00:00.0000000
1976-03-15 00:00:00.0000000
1900-01-01 00:00:00.0000000
1974-06-18 00:00:00.0000000

when i load this format into sql server using SSIS i got this error

[OLE DB Destination [16]] Error: There was an error with input column "CUST_DOB" (1930) on input "OLE DB Destination Input" (29). The column status returned was: "Conversion failed because the data value overflowed the specified type.".

i have changed my datetime format to datetime2(7)

how to load the data without failure using ssis

Decimal point is missing in loading

$
0
0

Hi Gurus,

I am loading data from oracle to sql server 2005.

Decimal points of AMOUNT column is replacing by 'zero'.For eg: if value is 123.45,data is loading like 123.00          

Datatype is  NUMBER(14,2)   in oracle, numeric(14,2) in sql server.                  

Please help. Thanks in advance.                                                                                                                                                                                 

multiple data flow task

$
0
0

Hi all

I am new at SSIS and I have a scenario which i have to achieve in the following way :

I want to take one script task and multiple data flow task and as per certain condition i want to run any of the data flow task.

i have so many XML files in a folder and in script task i am iterating all the xml files one by one on the base of specific node i want to cal a data flow task and i also want to pass the path name to xml source in that data flow task from my script only

Kindly help me with the solution if any of you have.

Thanks,

Diwakar

How to get error in to sqlserver table when the package is executing in Job?

$
0
0

Hi,

Is there way to log the error,when ever package is executing in sqlserveragent?

In brief,Lets say I have package that I have deployed to server.The pacakge is executing fine for two days,third day I got the error.So,now I want to see the error that occured and I dont want to open the package in BIDS.

Can anyone suggest the workflow for this.

Thanks


sudha

Loop through Set of excel files reading only first worksheet

$
0
0

Hi

i am new to ssis and i dont know vb scripting much. I have a set of excel files in a folder and i want to create a loop that will read onlythe first sheet of the different files in the folder. 

The Excel files and sheet doesnt have the same name but they have the same format.

Is it possible to create such a loop... Hope u will be able to help me... it really important.. thanks in advance

regards,

vaylen 

Exception from HRESULT: 0xC0048021

$
0
0
0 down vote favorite I am trying to implement a custom data flow component in my managed code. Here is my custom data flow component: [DtsPipelineComponent(DisplayName = "RenameComponent", ComponentType = ComponentType.Transform)] public class MapperComponent : PipelineComponent { List<idtsvirtualinputcolumn100>dontMapList; public override void ProvideComponentProperties() { base.ProvideComponentProperties(); base.RemoveAllInputsOutputsAndCustomProperties(); IDTSInput100 input = ComponentMetaData.InputCollection.New(); input.Name = "Input"; IDTSOutput100 output = ComponentMetaData.OutputCollection.New(); output.Name = "Output"; output.SynchronousInputID = input.ID; // Make the output asynchronous output.SynchronousInputID = 0; FindOldColumns(input); } } I compile that, register it with the gac, and save it to the C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents directory. I then run the following code to add the component to my data flow task: private static IDTSComponentMetaData100 CreateRenameTransformation(MainPipe dataFlow, Train train) { IDTSComponentMetaData100 renameTransformation = dataFlow.ComponentMetaDataCollection.New(); // Set stock properties renameTransformation.ComponentClassID = "Dexter.CustomComponents.MapperComponent"; renameTransformation.Name = "RenameTransformation"; renameTransformation.Description = "Rename and remove incompatible columns"; CManagedComponentWrapper instance = renameTransformation.Instantiate(); instance.ProvideComponentProperties(); return renameTransformation as IDTSComponentMetaData100; } During runtime (when i try to create the pacakge), I get the following error: 0xC0048021 -1073446879 DTS_E_ERRORCOMPONENT The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "%1". Thanks,</idtsvirtualinputcolumn100>

-DF

Insert data from table to excel

$
0
0

Hi,

I have one table in my database which contains some data. I want to create one package which should read data from table and fill in excel and then send that excel via email.


Alphabets in timestamp for a flatfile

$
0
0

Hi

I am into a senario where in I need to have an alphabet in the end of timestamp everytime i generate an output flatfile.

Output file format is .txt

for example run1 : Output_20121707a

   run2: Output_20121707b

   run3: Output_20121807c....

I am aware of timestamp but my concern is the alphabets. How can i do it automatically.


Anand

Genarate Text file from store procedure with start and end position of each field.

$
0
0

Hi,

I want to genarate the text file from store procedure, my store procedure will retrun 30 columns, i want to get this output in fixec txt format, I am facing problem mention the each field start position and end position of each field in the output file.

For example:

Field 1: FirstName  start position 1 to 20

Field 2: LastName  start position 21 to 30

Note: If firstname will have only 13 chars in the sql output, then i need to fill the space then only last name extactly start with position 21. This conditions will applicable for all the fields.

I tried to achive this Sql keyword "Replicate", But i am not sure replicate will correct way for this solution. Again i tried to get in SSIS . i am got failure. Please suggest the solution for this.

Regards,

Marimuthu.K

Delete all xls file after loading data

$
0
0

Dear All ,

I have around 100 xlx file in 20 folder.

can i delete all xlx file from all folder after loading data from xls to SQL table

 

Regards,

Vipin jha


Thankx & regards, Vipin jha MCP

Transaction log full

$
0
0

Hi,

I have two tables tb1(KEY,IDS,col2,col3,col4) and tb2(key,col) each table has 90 milion records and i am updating tab2 data to tb1 using KEy coulmn

UPdate tb1

set IDS=col from tb2

where tb1.KEy=tb2.key

In an execute sql task i am getting an error message stating:

[Execute SQL Task] Error: Executing the query "UPDATE    dbo.HES_OP_1112_test2
SET              H..." failed with the following error: "The transaction log for database 'QualityDB is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

can any one help in solving this problem.

thanks

kind reagrds

Ravilla


Capturing sql query result set single value in Project Parameter in SSIS 2012

$
0
0

Hi,

I have a PROJECT parameter "flag" in SSIS 2012. I want to assign the value for it at the run time from the result set of a query.

IF EXISTS(SELECT 1 from TABLE)

SELECT 1

ELSE

SELECT 0

this 1 or 0 should be assigned to above project parameter "flag". I know i is easy if "flag" is a variable. But its a project parameter. 

please help.


Porus

SSIS Excel Source Returning NULL Values

$
0
0

Hi All,

In my SSIS package excel source i am building the expression at the run time. In the excel sheet for a particular column the rows are blank up to certain no of rows from beginning. So while loading the whole column value is loading as NULL value. I have put IMEX=1 in the connection string.

Still i am getting all NULL values.

Any suggestion is appreciated.

Thanks

SSIS daily job scheduled fails with error in pffilestore.cpp

$
0
0

Hi, Here's the error

OnError,NEGOLAPPC,NT AUTHORITY\SYSTEM,ST Limited Stats,{40424D1F-8609-46B7-8B76-55A42C2CC4C9},{776FA897-A327-44FA-8CFD-02FB47309177},7/16/2012 10:19:30 PM,7/16/2012 10:19:30 PM,-1056964608,0x,Internal error: An unexpected error occurred (file 'pffilestore.cpp', line 3352, function 'PFFileStore::HandleDataPageFault').

OnError,NEGOLAPPC,NT AUTHORITY\SYSTEM,IncrementalOLAPUpdatePackage,{F423D795-224C-4060-91D4-39677031038B},{776FA897-A327-44FA-8CFD-02FB47309177},7/16/2012 10:19:30 PM,7/16/2012 10:19:30 PM,-1056964608,0x,Internal error: An unexpected error occurred (file 'pffilestore.cpp', line 3352, function 'PFFileStore::HandleDataPageFault').

OnError,NEGOLAPPC,NT AUTHORITY\SYSTEM,ST Limited Stats,{40424D1F-8609-46B7-8B76-55A42C2CC4C9},{776FA897-A327-44FA-8CFD-02FB47309177},7/16/2012 10:19:31 PM,7/16/2012 10:19:31 PM,-1055129598,0x,Server: The operation has been cancelled.

OnTaskFailed,,,ST Limited Stats,,,7/16/2012 2:02:50 PM,7/16/2012 2:02:50 PM,0,0x,(null)


SSIS Package is copying empty row in excel

$
0
0

I am using SSIS package to copy data from SQL DB to excel file. But the problem is while running this package some time is skiping the empty row in between and sometime not and every time the row # is different.

Can anyone help me.....?

SSIS 2008 Add Reference No Template Information Found

$
0
0
When attempting to add a reference to an SSIS 2008 Script Task of an SSIS package using Visual Studio 2008 or BIDS 2008, I receive error "No Template Information Found.  See the application log in Event Viewer for more details."  Peforming the tasks mentioned in the event viewer do not work for this particular problem.  I have seen others report this problem with no fix found.  I have this same problem on *EVERY* box with BIDS 2008 that I've tried this with no matter what reference I'm trying to add.   Others are replying to similar messages saying they have the same problem, but no real answers.  This appears to be so easily repeatable across different machines:
Install SQL Server 2008 on a server (or install Visual Studio 2008 on a workstation and choose SQL Server 2008 Express as an option)
Run BIDS 2008
Create a new Integrated Services Package
Inside the package, start a script task (VB.NET)
Edit the Script
Select Project inside the script window, then Add Reference
Select any reference and click OK.
Error appears

I can actually choose my intended reference (for example Oracle.DataAccess), click OK to get
past the error, then run the script and everything works.  However, the next time I open the
package, the reference is gone. 

SSIS package configurations issue

$
0
0

Hi,

I have master pacakge and that contains 30 child packages.

Here,my problem is should we create 30 child configurations or is there a way of creating one configuration file for whole package.

Regards...


sudha

CSV Pains

$
0
0

Hi All, I am trying to load a CSV file into a SQL Server table using SSIS. However, the file has a few fields that have values with a comma in between. For example,

FirstName   LastName            Title                             Status

XYZ              ABC              President, Tech services    active

When I open this CSV file in Excel, it works fine but SSIS is putting President under Title and Tech Services under Status. Any idea how to fix this?

CSV destination with no headers

$
0
0

Hello:

It is possible to export to CSV with headers or with no headers, but my problem is a bit different..

My customer wants a CSV file where most of the headers are blank, but some aren't. The data, coming from a SQL Server query source, will have many zero values, and the corresponding headers for the zero values will be blank. There are many columns with zero values, so I wanted to ask before I went to trial and error.  Problem is you can't use a source query will blank headers or with headers that are the same. So since the source query won't let me do this I imagine if it is possible at all I would have to use some transform to change the header values to blank and then send to CSV. The CSV result should look like this

1stHeader,2ndHeader,,,5thHeader

3221,322,0,0,2

Thanks for any help,

Blair

Viewing all 24688 articles
Browse latest View live




Latest Images