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

how to create excel file with xlsx extension

0
0

i use an execute sql task and excel connection manager to craete excel file.
execute sql task:

in the connection:

 it works.
but when i choose file path to: C:\1111.xlsx
and excel version to
micorsoft excel 2007.when open the file it created,it promotes the format is not correct.
how to solve this?


Conversion failed because the data value overflowed the specified type

0
0

Hi All,

 

I am facing very weird issue...

 

When i am running package thru SQL server job and getting follwing error:

 

SIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".  An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Invalid character value for cast specification". 
There was an error with input column "Billing_date" (2568) on input "OLE DB Destination Input" (979). The column status returned was: "Conversion failed because the data value overflowed the specified type.". 
SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (979)" failed because error code 0xC020907A occurred, and the error row disposition on "input "OLE DB Destination Input" (979)" 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. 
SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "billing_table" (966) failed with error code 0xC0209029. 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. 
SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0209029.

 

In the package, i am selecting data from SQL Server database into query(billing_table) and inserting data using destination task into SQL server table(stg_billing_table). Both table has same data type datetime for Billing_date.

 

Here are couple of points:

 

1) When i am trying to execute same insert statement thru SQL Server editor, it is running successfully.

 

INSERT INTO stg_billing_table (Billing_date)

SELECT Billing_date FROM stg_billing_table;

 

2) When I am running package from Solution explorer then also it works fine.

 

Issue only comes when i try to run package thru SQL server job. one point, There are lot of other task running parallel to this package when we run thru JOB.

 

One more thing which i have observed that when i tried to see input transformation datatype for same column in package, it is DT_DATABASETIMESTAMP. Well i am not able to understand that it may be potential issue because if it is related to DT_DATABASETIMESTAMP to date time conversion then we should have faced this issue while running thru solution IDE.

 

Issue looks related to database level buffer/ Memory overflow etc. to me. Can somebody help me understanding the issue?

 

Thanks.

 

 

why are my log files getting generated with a space between every two characters?

0
0
Hi, we run std 2008 R2 and suddenly my last two packages are generating log text files (configured from logging option in ssis) with blanks between every two characters even if those characters are in the same word.  I'm using notepad to look.  Its happening on my local and on a remote server.  Does anybody know what causes this?

how to use Case statement in SSIS

0
0

Hi,

I need to use CASE statement in SSIS, how to write it in Derived Column ?

SQL scripts as below.

   CASE 
WHEN [rDate] = '1753-01-01 00:00:00.000' THEN '1900-01-01 00:00:00.000'
ELSE [rDate]
   END AS [rDate] 

 Thanks a lot.


           

LogProviders.Add fails with "not recognized as a valid log provider type." in Data Tools but not BIDS

0
0

In attempting to add standard DTS logging to a package via Data Tools, I found that my attempt to execute:

        Dim provider As LogProvider = p.LogProviders.Add("DTS.LogProviderTextFile.2") 

(or any other log provider type,) resulted in:

The log provider type "DTS.LogProviderTextFile.2, {0A039101-ACC1-4E06-943F-279948323883}" specified for log provider "{CC5CB9A4-E0D5-4ECD-8F4E-1E8FB9BDE8A6}" is not recognized as a valid log provider type. This error occurs when an attempt is made to create a log provider for unknown log provider type. Verify the spelling in the log provider type name.

I created a new package with a single script task using only the example code from the MS documentation for Embedding Logging Programmatically at:

http://msdn.microsoft.com/en-us/library/ms136023(v=sql.110).aspx

consisting of:

Imports Microsoft.SqlServer.Dts.Runtime

Module Module1

  Sub Main()

    Dim p As Package = New Package()

    Dim loggingConnection As ConnectionManager = p.Connections.Add("FILE")
    loggingConnection.ConnectionString = "C:\SSISPackageLog.txt"

    Dim provider As LogProvider = p.LogProviders.Add("DTS.LogProviderTextFile.2")
    provider.ConfigString = loggingConnection.Name
    p.LoggingOptions.SelectedLogProviders.Add(provider)
    p.LoggingOptions.EventFilterKind = DTSEventFilterKind.Inclusion
    p.LoggingOptions.EventFilter = New String() {"OnPreExecute", _"OnPostExecute", "OnError", "OnWarning", "OnInformation"}
    p.LoggingMode = DTSLoggingMode.Enabled

    ' Add tasks and other objects to the package.

  End Sub

End Module

I get the same error as listed above in SQL Server 2012 Data Tools on three separate machines.  On my primary dev box, where the code fails in Data Tools, running the exact same code in BIDS runs without problems.

Importing the working BIDS package into Data Tools also fails with the same error.

I have not encountered any other 2012 Data Tools issues, but logging is a core pattern that makes me worry that this is a problem that may emerge with other functions in the DTS toolset.

Thanks for any help!!

SQL Server Package Configuration for Multiple Packages

0
0

Hi,

I have a number of SSIS packages all of which use the same SQL Server package configuration.

Now I want to add a Flat File Connection manager to each package. However, each one will save the file to a different location. Therefore, the same connectionstring will not work for this.

How do I use separate Flat File configs for these packages?

Thanks!

how to implement Data Driven Query Task in SSIS 2012

0
0

HI

I have a requirement of migrating DTS package which is done in Sql Server 2000 to SSIS 2012.

I started with one package having data driven query task and done with source for which i chose OLE DB Source and given the required select query in ssis 2012

I'm stuck now and i'm unable to choose the relevant tools in ssis 2012 for binding, transformation,queries and lookup tabs used in dts 2000 for this DDQT.

Please Help.

Getting Salesforce data to sql server

0
0
HI, i am looking for options on getting sales force data into our dev(SQL SERVER 2008 R2) server, i found many third party tools but i am wondering if there is any way i can achieve it using SSIS, can some one please guide me with this, thanks in advance for the help!

NOT IN

0
0

Hello,

I have two source, one from SQL Server and One from DB2. I have to exclude few rows from SQL Server dataset which does exist in DB2 Dataset. How Do I do that in SSIS? What component to use for that?

Eg. In sql, 

Select a,b from DS1 where DS1.ID not in (Select ID from DS2)

where DS1 is SQL Server dataset source and DS2 is DB2 dataset source.

What component can I use to perform that NOT IN so that I can filter the data I want?

Data folder not loading with new project

0
0

Hello All,

Please assist if you can. Thank you in advance....When creating a new integration project, the data folder to create a new data source does not load.  Can someone tell me Please what I am missing?

Thanks in advance for any assistance.

Have a sunny day!

check for child directory under parent directory

0
0

I have Parent directory listed as C:\Main\

Using query result set im getting list of child folders that needs to be pulled from source to target and child directory's can be abc,def and so on

I need to check if abc or def exists under C:\Main\ . If it exists i need to copy from source to target if it doesnt exist i need to skip it.

How do we achieve this using SSIS.

Any help much appreciated.

Which counters to look at on SSIS?

0
0

Hi guys,

I wanted to know which counters do you guys use… To capture/measure correctly SSIS servers load...

The few information I found on the internet looks outdated…

I would need OS and SQL counters to look at, also any best practice/recommendations I should be using/giving to SSIS servers.

Thanks!!

SQL server 2014 and VS 2013 - Give batch size to Excecute SQL task

0
0

Hello everyone,

I'm performing purge operation in SSIS package. I've used Execute SQL task to perform purge over around 60 different tables one by one in For each loop container.

Client wants to perform purge in batches for performance, hence this package has batch size parameter. 

Can you please advise how to use/apply the batch size to Execute SQL task?

Is there any other alternative that perform purge operation in batches?

Any help would be greatly appreciated.


Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

how to use stored procedure return multiple result and put this result to differenet destination

0
0

create procedure test as

select 1...

select 2...

use this result as a data source , put result 1 to destination 1 and result 2 to destination2

Need to import Survey data from Survey Analytics to SQL Server Data Warehouse

0
0

Hi,

I have a CSV file coming from Survey Analytics. I need to import the Survey data in data warehouse using SSIS. Below is the sample of Survey Data in CSV 

ResponseID Name Which flavour of Ice Cream would you prefer?
                          Vanilla    Strawberry    Mango   Guava    Chocolate
           1    ABC                 Strawberry

The questions and answer choices are in the columns and I would like to transpose it to rows as the answer text may not be unique.

My Data Warehouse table structure is as follows:
tblQuestions - QID, Question 
tblAnswers - AID, Answer 
tblResponses - ResponseID, QuestionID, AnswerID, Score

How do I import this using Flat File Connection? I am really stuck not sure how do I do this?

Thanks,
Gayatri


CDC SSIS 2012 ,CDC TASK,CDC Source,CDC Splitter

SSIS derived column transformation replace string

0
0
How do you do an if then statement in ssis so that if  value in column A = "XXX"then  column B = "XXX"

SSIS Dynamically export tables to raw files

0
0

Every day an application creates new tables and dumps static info into them. I would like to create a package to dynamically export those database tables to raw files for long term archive, one file per table. Here is what I have so far and the issue I am having.

1)     Get a list of un-archived tables.

2)     Foreach table do the following.

a.      Export the table into raw file.

b.     Zip the raw file.

c.      Update archive tracking table.

As long as the metadata for each table is the same this package seems to work fine. However, I have many tables with different metadata.  How can I dynamically get the package update the metadata column collection when it hits a new table?

When it hits a table with different metadata I am getting warnings like this:

The column "some_column" needs to be added to the external metadata column collection.

The "external metadata column "someother_column" (103)" needs to be removed from the external metadata column collection.

Then I get this error:

Error: 0xC004706B at dump the table into a raw file, DTS.Pipeline: "component "OLE DB Source" (1)" failed validation and returned validation status"VS_NEEDSNEWMETADATA".

Please help.


Kono

Lookup Transformation

0
0

Hello All,

My source has 2.2 million of records. I'm performing the incremental load.
In the lookup transformation i used the destination table for the reference using Full cache mode.

For the first time package executed successfully but when i executed the package second time, Suddenly Package hangs while running.

Than i truncate the data from the destination table and restart the SQL Server Services.
After doing all this i executed package again and it worked but when i executed package second time, again package hangs up .

What is the problem??

I have 8GB RAM and i5 2.5 GHz Processor laptop.




Saving value in a variable

0
0

I created a package whose source data looks like this

Code EDate Price

HO 6/20/2015 2.0

HO 6/20/2015 3.1

HO 6/20/2015 4.2

HO 6/20/2015 3.3

CL 6/22/2015 2.5

CL 6/22/2015 3.9

and so on..

I want to store Edate in a variable for a particular Code. How can i do this in SSIS?

var_EDate_HO = 6/20/2015

var_EDate_CL = 6/22/2015

Viewing all 24688 articles
Browse latest View live




Latest Images