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

Transfer SQL server objects task

$
0
0

is it possible when using the transfer sql server objects task to copy database tables from one database to another and have them move to a different schema?

example

hsi.doctype -> dbo.doctype

I have 187 tables to do this with and I'm trying to figure out the best way to approach the issue.  I know how to set up an transfer object task from database to database within the same schema but it is changing schemas I am having problems with.


Load Nested XML to SQL Server Table

$
0
0

Hi All 

I have the following xml data and want to load in to sql server , Can you please let me know how do i achieve this using ssis, When using XML source i am getting multiple Column Headers

<UtilityInvoices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UtilityInvoice UtilityInvoiceID="">
    <UtilityAccount AccountID="123">
      <AccountNumber>456</AccountNumber>
      <EnergyTypeInfo>
        <EnergyTypeName>A</EnergyTypeName>
        <ConsumptionUoM xsi:nil="true" />
      </EnergyTypeInfo>
    </UtilityAccount>
    <DateInfo>
      <InvoiceDate>2014-06-30 00:00:00</InvoiceDate>
      <FromDate>2014-06-01 00:00:00</FromDate>
      <ToDate>2014-06-30 00:00:00</ToDate>
      <UsagePeriodDays>12</UsagePeriodDays>
    </DateInfo>
    <UsagePeriod>6/2014</UsagePeriod>
    <ChargesInfo Currency="USD">
      <DeliveryCost>3.82</DeliveryCost>
      <SupplyCost>0</SupplyCost>
      <TotalCost>3.82</TotalCost>
    </ChargesInfo>
    <EnergyInfo>
      <ConsumptionInfo>
        <TotalConsumption xsi:nil="true" />
        <UomName xsi:nil="true" />
      </ConsumptionInfo>
      <DemandInfo>
        <Demand xsi:nil="true" />
      </DemandInfo>
    </EnergyInfo>
    <MiscInformation />
    <CombinedFrom CombinedRecord="true">
      <IncludesCode>
        <Code>1</Code>
        <CodeDescription>Si</CodeDescription>
      </IncludesCode>
    </CombinedFrom>
    <ECAInformation>
      <LinkToECAPresent LinkToECAPresent="true" />
      <ECAName>E 12</ECAName>
      <ECAAddress>
        <FullAddress xsi:nil="true" />
        <AddressDetails>
          <Line1>1 s street</Line1>
          <Line2 xsi:nil="true" />
          <City>abcd</City>
          <Zip>12345</Zip>
          <StateFullName>west</StateFullName>
          <StateAbbreviation>w</StateAbbreviation>
          <CountryName>ABCD</CountryName>
        </AddressDetails>
      </ECAAddress>
    </ECAInformation>
  </UtilityInvoice>
</UtilityInvoices>

Thanks

[OLE DB Destination 1 [342]] Error: Unable to retrieve column information from the data source. Make sure your target table in the database is available.

$
0
0

Can someone help me out with this error:

[OLE DB Destination 1 [342]] Error: Unable to retrieve column information from the data source. Make sure your target table in the database is available.

All I'm trying to do it get data from source and send it to destination.

FYI

-Both Source and destination are SQL server

-I'm Using OLEdb Source and OLEDB destination components

- Target table physically exists in destination. Never had such problem before and any information about this online doesn't help at all.

Thanks,


sree

How to export data to Excel from SQL?

$
0
0

I did some google search and I also tried to export data from SQL to Excel but did not get success.

I tired with OLE Db Source> data conversion> excel destination not work for me. 

I used directly import and export wizard in SSIS and it's worked, stopped working.

Looking for any other Idea I can apply to get export data to excel from SQL using SSIS? 

Thanks

SSIS 2012 Data Flow Task - Fail If there's space on the bottom of the file

$
0
0

Hi Everyone,

We're currently upgrading our packages from 2005 to 2012 and we noticed that in SSIS 2012, if there's extra spaces on the bottom of the file. It will fail the task whereas, in 2005 it will ignore it and finish successfully.

Is there a way in SSIS 2012 to ignore those spaces without adding a task? We're trying to minimize the changes as we have a lot of packages to be upgraded.

I know we can just remove the spaces but we can't control the file once we receive it. Also, why can't SSIS 2012 ignore those space like in 2005 did?  

Error Message: An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".

Thanks in advance!


SSIS 2012 Data Flow Task - Fail If there's blank rows on the bottom of the file

$
0
0

Hi Everyone,

We're currently upgrading our packages from 2005 to 2012 and we noticed that in SSIS 2012, if there's extra spaces on the bottom of the file. It will fail the task whereas, in 2005 it will ignore it and finish successfully.

Is there a way in SSIS 2012 to ignore those spaces without adding a task? We're trying to minimize the changes as we have a lot of packages to be upgraded.

I know we can just remove the spaces but we can't control the file once we receive it. Also, why can't SSIS 2012 ignore those space like in 2005 did?  

Error Message: An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".

Thanks in advance!



No Available External Columns

$
0
0

Hi Experts,

I have a stored procedure that I used to extract data using SQL Server 2005.

This stored procedure is ran on SQL SERver 2005 that has a linked server, the actual source from where data is extracted from.

DECLARE @return_value INT
DECLARE @sDate as DATETIME
DECLARE @DateStart as DATETIME
--SET @sDate = replace(convert(VARCHAR(10),DATEADD(dd, -30, getdate()),111), '/', '-')
SET @sDate = CONVERT(date, DATEADD(dd, -30, getdate()))
DECLARE @eDate as DATETIME
SET @eDate = DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()))    --GetDate() 

exec @return_value = [WORLDS02].TransferofMoney.dbo.sp_TransactionDetail 
        @UserName = N'AUser',
        @Password= N'auser!1234',
           @DateStart= @sDate ,
        @DateEnd  = @eDate

I created a SSIS package and the extraction ran well until recently our SQL SERVER 2005 has crashed and we moved to SQL SERVER 2012.

When I use the same above stored procedure and run on SQL SERver it shows the results without any error.

However, the SSIS package now shows errors and I do not see any External columns on the OLE DB source object.

Can you please help resolve this issue.

SSIS 2012 to Sharepoint 2010 file upload with CosyROC Script Task Plus

$
0
0

Hi,

I am attempting to load files to Sharepoint 2010 with SSIS 2012 and have linked HttpUploadDownloadTask.2012.stx11 from http://www.cozyroc.com/script/http-upload-download-task into a Script Task Plus.The HttpUploadDownloadTask.2012.stx11 provides the following parameters -

Username – user name credential (optional).
Password – password credential (optional).
ProxyUrl – HTTP proxy URL (optional).
IgnoreServerCertificate – enable or disable server certificate validation.
Timeout
Action – task action (upload or download).
RemoteUrl – remote file location.
SourceFile – upload from source file. (TargetFile – download to target file.)
Method – method used to upload file. If not specified default is POST.
Headers – additional web request headers (optional). Syntax is [name]=[value]. Multiple headers are separated with newline.

RequirementUpload file roy.txt into Sharepoint as a new file and ultimately will upload multiple daily/dated Excel reporting files from SSIS

Settings/Results - I have a local file roy.txt and listed below what settings i've applied when attempting to upload the file roy.txt and the results i have.

Settings 1 - Result - No file uploaded - Upload file roy.txt to AllItems with default POST method

Username - roy
Password - royspassword
IgnoreServerCertificate - False
Timeout - 100
Action - Upload File
RemoteUrl - http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx 
SourceFile - roy.txt
Method -
Headers -

Setting 2 - Result - Replaced page http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx with roy.txt using PUT method

Username - roy
Password - royspassword
IgnoreServerCertificate - False
Timeout - 100
Action - Upload File
RemoteUrl - http://sharepoint/testing/ROY%20test%20SSIS/Process/Forms/AllItems.aspx 
SourceFile - roy.txt
Method - PUT
Headers -

I can manually upload a file fine but wondering if i shoudl use a different RemoteURL and / or Method to get the desired results. Does anyone have any experience or advice in using HttpUploadDownloadTask and/or Sharepoint URL settings to programmatically upload file successfully in this way?

Thanks

Roy


Datalfow error detination input failed with error code 0xC020907B

$
0
0

I am getting this error msg.

[OLE DB Destination [83]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (96)" failed because error code 0xC020907B occurred, and the error row disposition on "input "OLE DB Destination Input" (96)" 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.

i don't see any id with 96,   how do i find, which column  pointing to input "OLE DB Destination Input" (96) 


Thanks

V


Request for SSIS Package from AdventureWorks2014 to AdventureWorksDW2014

$
0
0

Hi,

Can any one help to understand schema in AdventureWorks2014 and AdventureWorksDW2014 Databases?

How to create tables in warehouse database and how to import data into warehouse database?

Thanks and Regards,

Srinivas Ch.


Srinivas Ch

Possible to export SQL Server data to SPSS file?

$
0
0

I have SQL Server and I would need to provide data sets, which can be read in SPSS in another environment. Idea is that SSPS user could use file as data source for analytics.

Is it possible to use SSIS for data export? If not, what could be best tool and process? Exporting as CSV would lose relationships.


Kenny_I

SSIS 2008 R2 error on task executing using ODBC connector

$
0
0

I get this error message when trying to execute a simple task in SSIS. I have ran this package before whitout any issue, but now i'm getting this error. I haven't made any configuration changes, everything still the same way than when the package worked. The source use an ODBC connector to extract data from an external MySQL DB.

I have been reading about multiple errors on using connectors in Visual Studio 2008, but I can't find any advice that works for me...

Any help will be thankful...

Error: 0xC02090F5 at Recarga completa en DW, ADO NET Source 1 1 [1552]: The component "ADO NET Source 1 1" (1552) was unable to process the data. Intento de leer o escribir en la memoria protegida. A menudo, esto indica que hay otra memoria dañada.
Error: 0xC0047038 at Recarga completa en DW, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "ADO NET Source 1 1" (1552) returned error code 0xC02090F5.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
Error: 0xC0047038 at Recarga completa en DW, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "ADO NET Source 1" (163) returned error code 0x80004003.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
Information: 0x40043008 at Recarga completa en DW, SSIS.Pipeline: Post Execute phase is beginning.
The program '[5324] Package.dtsx: DTS' has exited with code 0 (0x0).

Pipe Delimited Flat File Destination

$
0
0

HI , 

I have to extract data from a table and load to a flat file with pipe delimited.  The pipe delimited should show up at end of each row as well as below. The flat file should be generated with timestamp at the end of file name. 

Ex: I have four columns in table as ID, Name, Address and State. The flat file should be as below and the name of flat file should be as  OutputFlatFile_01252017.txt

1|ABC|12 state|NY|

2|ABC|12 state|MA|

3|ABC|12 state|NH|

I was just wondering how the column end can be delimited as pipe. 

Please help

Thanks

catalog.operations (SSISDB Database) Status defintions

$
0
0

In the MSDN article https://msdn.microsoft.com/en-us/library/ff878094.aspx there are explanations for the columns in the operations table. Does anyone know where I can find more detailed definitions for the status. In the article they have the following:

The status of the operation. The possible values are created (1), running (2), canceled (3), failed (4), pending (5), ended unexpectedly (6), succeeded (7), stopping (8), and completed (9).

I'd like to know in particular the difference between succeeded (7) and completed (9). My understanding is completed means a task ran and finished with or with out error(s). Succeeded means that a task was executed error free and is able to continue... Thanks in advance for help and suggestions... Cheers Michael

 

Dynamics NAV Toolkit

$
0
0

Hi, We're planning to move away from using Scribe and use SSIS instead as a tool for importing into Dynamics NAV. But we noticed there are a number of different third-party toolkits and/or enhancements for SSIS.  Can you, at least, identify for us which ones are legitimate and actually works? If you can recommend your top 3 (or 5) that would be great. Thank you very much.


SQL Server 2016 Developer - SSIS Error During Installation

$
0
0

I am trying to install Integration Services on my SQL 2016 Developer instance. I have successfully installed the Database Engine, Reporting Services, and Analysis Services but I get the following when I try to SSIS:

VS Shell Installation has failed with exit code of 1638.

My setup is a Windows 10 Enterprise (64-bit) OS, Visual Studio 2013 Premium, and SQL Server 2016 Developer (64-bit) and Management Studio 2016.

The Error details shows me:

Action required:
Use the following information to resolve the error, and then try the setup process again.
Feature failure reason:
An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Error details:
§ Error installing Microsoft Visual C++ 2015 Redistributable
VS Shell installation has failed with exit code 1638.
Error code: 1638
Log file: C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20170125_211938\VCRuntime140_x64_Cpu64_1.log
Visit http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=13.0.4001.0&EvtType=VCRuntime140_x64%40Install%400x1638 to get help on troubleshooting.
When I look at the log file, this in particular stands out:

[131C:2708][2017-01-25T21:23:51]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

But I do not what product this is referring to. Could anyone help me resolve this issue?


SSIS Job fail (Basic error details)

$
0
0
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

I see my SSIS package getting timeout, i try to trace but can not get any details, there are no blocking or any deadlock. I can see that the issue is caused by a lock time out. but to get which query is blocking mine? profiler did not help here
Please guide

Best Regards Moug

[ODBC Source [1014]] Error: Open Database Connectivity (ODBC) error occurred. - No additional info

$
0
0

Hi Everyone

I'm having issues with an SSIS package that imports data from an Intersystems Cache database to an SQL database. I am using SQL server data tools 2015 for this. I am using an ODBC source component in my dataflow (see image below).

The package imports a certain amount of rows before failing and the error message in the Progress tab is as follows:

[ODBC Source [1014]] Error: Open Database Connectivity (ODBC) error occurred.[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on ODBC Source returned error code 0x80004005.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

No additional information relating to the error is provided. I have added a error redirect to a flat file but nothing seems to be sent to the flat file.

Is there anyway to work out what is causing this error as very little information is provided. Normally you get an error such as truncate error etc mentioned in the progress tab but on this occasion, no indication as to what has caused the error.

Thanks in advance

Rob


Conditional Split results change when task re-executed

$
0
0

Hi all, 

     I am seeing unexpected results when executing a SSIS package I've built. I pull data from 2 tables, merge it, run through a Script Component, and lastly separate the data using a Conditional Split. The data is not being touched, and the script component is very simple (see below).

     The row count going into & coming from my Script Component remains constant. My conditional Split is simply a filter for items with value = null & those with value = "". However, when I execute the task multiple times the count for those two 'outputs' keeps changing. 

My Script Component Is basically as follows: (This returns a consistent # of somethingIsNull = false)

MyClassType something = MyClassType.Create(InputRow.val1)
InputRow.somethingIsNull = true;

if(something != null)
{
   InputRow.Val2 = something.Val2;
   InputRow.somethingIsNull = false;
}

To my knowledge, anytime somethingIsNull = true, Val2 should be left unassigned (and I'd assume null).

My next step is a Conditional Statement.

If(InputRow.somethingIsNull) --> send to 2nd Conditional Statement (only exist for debugging purpose)

     2nd Conditional Statement = If(IsNull(Val2)) send to grouping A,if(Val2 == "") send to grouping B.

  Grouping A & B get different counts every run, but added together result in a consistent total.

So best I can tell when SomethingIsNull = true, Val2 is getting assigned inconsistently (something null, other times ""). But I don't see what would cause that to be assigned inconsistently?


Designing SSIS in Visual Studio using 32bit ODBC, but deploying package to use 64bit ODBC (firebird drivers)

$
0
0

Hello,

I have designed a package in Visual Studio that runs perfectly form Visual Studio itself. The workstation in which Visual Studio has been installed is a 32bit (don't ask!) Windows 7.

When I deploy the package in SSIS, which runs on a 64bit version of Windows Server, I noticed that the job fails to run as it says that it could not find the ODBC with the name provided. I wonder if there is a version mismatch here?

If so, how can I make sure that I can design the package in VS using the 32bit ODBC, but deploy it using the 64bit version?

Thanks in advance.

Regards,

P.

Viewing all 24688 articles
Browse latest View live


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