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

SSIS Lookup transformation help

$
0
0

Good Day,

I am new to SSIS, could please suggest me about Lookup transformation.

Ex: I would like to see my data after lookup in the database side

      Person ID     Course

       1               SharePoint

       2               SSIS

       3               SSRS

but, i am getting like this,

       Person ID     Course

       1              

       2              

       3              

      NULL             SharePoint

      NULL              SSIS

      NULL              SSRS

could please provide me suitable solution, thank you.

Kind Regards

               

                                     


SSIS Derived Column Transformation Question

$
0
0

I have a derived column (ParsedStartTime is nvarchar) created by the following expression:

SUBSTRING(Time,1,FINDSTRING(Time,"-",3) - 1)

I also have an input field (Setup T is Float)

I want to create a derived column (CalculatedStartTime) that is ParsedStartTime - Setup T.

I would like to do this in the same table.  I cannot use ParsedStartTime as input (because it is derived), but can I create an expression using the same code and then DATEADD to reduce the time by Setup T?  Any idea what the expression would look like?

Import XML in MS SQL database using SSIS

$
0
0

Hello All,

I need to import this XML file using SSIS. In SSIS I use XMLSourceEditor. What XMLSourceEditor is doing the it is creating different output names for LANG_CD and LANG_DESCR in LOCATION_LEVEL1 element thus putting the values of these in two different tables.
I need to put LANG_CD and LANG_DESCR column in the same table.

Please advice.

Below is the xml format that i need to import;

<?xml version='1.0' encoding="UTF-8"?>
<Packet>
    <Action Name="Export">
        <REQISITION_INFO>
            <REQUISITION_NO>1</REQUISITION_NO>
            <REQ_TITLE>
                <LANG_CD>en</LANG_CD>
                <LANG_DESCR>Manager</LANG_DESCR>
            </REQ_TITLE>
            <LOCATION_LEVEL1>
                <LANG_CD>pt-BR</LANG_CD>
                <LANG_DESCR>Spanish</LANG_DESCR>
                <LANG_CD>de</LANG_CD>
                <LANG_DESCR>English</LANG_DESCR>
            </LOCATION_LEVEL1>
            <RECRUITER_NAME>recruitername</RECRUITER_NAME>
            <RECRUITER_EMAIL>hello123@test.com</RECRUITER_EMAIL>
        </REQISITION_INFO>
        <REQISITION_INFO>
            <REQUISITION_NO>2</REQUISITION_NO>
            <REQ_TITLE>
                <LANG_CD>en</LANG_CD>
                <LANG_DESCR>Manager</LANG_DESCR>
            </REQ_TITLE>
            <LOCATION_LEVEL1>
                <LANG_CD>pt-BR</LANG_CD>
                <LANG_DESCR>English</LANG_DESCR>
                <LANG_CD>de</LANG_CD>
                <LANG_DESCR>Spanish</LANG_DESCR>
            </LOCATION_LEVEL1>
            <RECRUITER_NAME>recruitername</RECRUITER_NAME>
            <RECRUITER_EMAIL>hello123@test.com</RECRUITER_EMAIL>
        </REQISITION_INFO>
    </Action>
</Packet>

Parsing data with SSIS package

$
0
0

I want to load data from a spreadsheet into a sql table.  One of the ten columns in the xls contains multiple bits of data. I want to parse the multiple bits into two columns in a table.  For example:

- from the xls I want 2013-02-06  3:00 PM - 2013-02-06 3:00 PM

- to end up as rows in two separate columns in a table 2013-02-06 3:00 PM  and 2013-02-06 3:00 PM

How can I do this with an SSIS package?

Basic: Strategy importing files to stage and then to fact/dims.

$
0
0

Hi!

I have a Data Warehouse into which I´m importing data from different sources.
Until now the source has always been sql tables that I have copied data from into staging tables.
The steps has been like:
Step 1: Clear all stage tables
Step 2: Copy data from sql source to sql stage destination.
Step 3: Move data from stage into dimenssion/facts.
If step 2 or 3 fails, I re-run the whole package from step 1 and copy the "same" data again from sources.

Now I´m about to do my first SSIS using file-imports to the stage. I am wondering if someone can advise in what basic steps that should be included.
Say I have a folder containg several csv-files at the same format. I want to import them to a stage-table and then import the stage-data into a fact-table.
My concerns is what is happing if one of the steps is failing. When should the files be deleted/archieved, when the data is safe in the fact-table or already when inserted in the stage-table? What about transaction-handling and so on? A difference from the sql-approach above is that the source file can´t be regenerated. I will get them ones.

Regards
/ Stefan

SQL Server Data Tools – Business Intelligence for Visual Studio 2012

$
0
0
When I try to install SSDTBI_VS2012_x86_ENU.exe from

http://www.microsoft.com/en-us/download/details.aspx?id=36843

I get: An error was encountered - "Unspecified Error".

Is there a log or anything else that would elaborate on this error?

I have the Business Intelligence tools installed and working in Visual Studio 2010.

Machine configuration:

     Windows 7 64 bit.

     SQLServer 2012 Developers Edition Service Pack 1

     Visual Studio 2012 Professional Update 2

SSIS package failing due to Afrikaans character conversion error

$
0
0

I have a SSIS package that extracts data from a view and creates a flat file from the data. Everything was working until last night. The package failed with the message "Data conversion failed. The data conversion for column "LastName" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page."

I pinned it down to an Afrikaans character ʼn.

Now, the ASCII() function returns the code 63, for the question mark '?', which is incorrect. The REPLACE() function cannot handle it either. It simply does not replace it. If I do SELECT LastName from MyView, I get the last name WITH the character in there. I get "Villaseʼnor". But if I do PRINT LastName from MyView, I get "Villase?or".

Now, this is puzzling. If replace can't get to it, I can't check for it and then replace it thus avoiding the problem. I did find a workaround for the issue by using CONVERT(varchar,LastName), which replaces the ʼn for a question mark.

But, am I missing something here? Is there a different collation I can use, or something? Or a different data type in the SSIS package?

Much appreciate any insight to this puzzle.

Raphael


rferreira

TNS error - Unable to establish connection with oracle using SSIS

$
0
0

Hi All,

Thanks in advance.

I am trying to establish the connection with ORACLE 11 g Database in SQL SERVER 2008 R2 64 bit Machine using the OLEDB Provider . But getting the TNS Listener issue.

Note : I have included the Database configurations in TNS entry, also we pinged the database it works fine.

Please find below the screenshot for the same,

Thanks

Rajan.S



flatfile to db load

$
0
0

i got 1 flat file and i need to load in db.

file contains one "main transaction no.as Header"

under one transaction code so many "item lines ".

In flat file column name are different for Header and item.

source data is one line after another.No specified string length in source.

i have till now kept both header and item in different table.Now i dont know how both can put together.ItemLine  is dependent on Header.

how i will load can anyone help.

How to use SSIS to retrieve XML responses from a Web Service?

$
0
0

Hi,

We are using SSIS 2012 to call a webservice whose responses are returned in XML format.  I tried using the WebService transform but am prompted to provide a WSDL file which is not given to us.  That is, a WSDL is not needed to access the web service.  Is there a different transform (Script Task?) that should be used instead?  If so, can you provide me with some guidance on handling the webservice request and the XML response via the Script task?

Thanks much for your help and guidance.

SSIS Excel to database table question?

$
0
0
I have an SSIS package with and Excel Source, Derived Columns and and OLE DB Destination. It takes an XLS file, massages the data (new, derived columns) and then populates a SQL db table with the results. My problem is: where do I filter the data coming in from the XLS? I want to only work with rows that have a given value in one of the columns (i.e. only rows where Type is "DNA") and I want to order the results by SubType. Where and how can this be done inside the SSIS package?

DB growing out of control during an ELT run

$
0
0

We are trying to run a warehouse ETL using SSIS. Everytime we try we keep running out of harddisk space. When we ask for more space usually in the amount of 30 gigs and rerun we quickly eat that space up. That makes no sense. We are not importing 30 gig of data. A couple million records maybe and even then the lion share of those records are just getting merged with existing records (ie. maybe a few hundered additions to fact tables but most dim tables aren't touched).

When SSIS runs what is it that is taking up all the space? Is it log files? How can we keep our DB from growing out of control? Not sure if this belongs here or in the SSIS section. Admins feel free to move.

store the select query result as variable and load on another table in ssis

$
0
0

Hi guys ...

 Like to know how i can store select query result in variable and then  load it to the other table in SSIS-2005.

i am using select count (*) from dbo.my_Table on Server1. want to store this query result in variable and then load this result on Server2\MY_db.dbo.xyz.

Thanks for help


Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

Database Login Failed

$
0
0

I have an SSIS package that I'm trying to run from a SQL job. However, it fails, and the log claims that the password for the user specified in the connection string is wrong. For testing I've got the protection level set to EncryptSensitiveWithKey, and it runs fine from BIDS. When I import it into SSIS I change it to ServerStorage. (My understanding of the documentation says that this should work. I could be wrong though.) During the import it asks for the decryption key, which I supply, and everything seems fine.

It also seems fine when I set up the job in SQL Server Agent. However, when I run the job, it fails and the log says that the password for that user is incorrect. It doesn't say that there is a permission problem, but that the password is wrong.

I've been through the connections and double checked the username and password that is used to access the database. I can connect just fine with that username and password combination. This is the user that is used to connect to the database. There don't appear to be any problems executing the job.

I also tried setting the packages to not save sensitive, and created a configuration file, which I then edited so that the connection string included the password, and I still get the same error

Then I tried putting the password into the final package file and loading that into the job step from the filesystem. That didn't work either.

Any help with this would be appreciated.

sql server package configuration with sql authentication not working

$
0
0
Hi! 
I am new to BI and i have a dilema. I created a data source with SQL Server Authentication(username: sa, Password: Password) and a package, then I tried to configure Package Configuration. I have chosen SQL Server connection type and for [SSIS Configurations] i've checked from Connection Managers node -> My DataSource -> "Connection" String and "Password". I go in DataFlow -> Execute Task and i get a error message:

"[Customer Source [464]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "AdventureWorks2008" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
"
In Windows Application log the error message is:
"Login failed for user 'sa'. Reason: Password did not match that for the login provided. [CLIENT: <local machine>]"

If i have the password in ConfiguredValue column of [SSIS Configurations] table why can I not execute succesfully the package?
If i chose windows authentication everything goes fine.

Need help to perform an ETL task with SSIS

$
0
0

I want to connect to a server using its IP address. Then, I want to execute a .sql file kept on that servers drive. I also want to store the results of this sql in a text file on the server itself. Should i execute it as an sql task or run it as an extraction from database or something else ? I am not sure how to go about it. I need tips on how to proceed.

The database used is SQL server 2008.

SSIS Toolbox is loading... but never gets populated

$
0
0

I've just installed SQL Server 2012 with BI on Windows 7 enterprise. Created a new SSI package. Opened the "SSIS Toolbox" and not the "Toolbox", and keeps saying "loading..." but nothing is populating. I removed the SQL server and reinstall it again. Same issue. All the services are running.

thanks,

Hooman

SQL Server 2008 - Running Multiple Remote Desktop Sessions - Need to attach different versions of the same DB file for each Remote Session

$
0
0

I am hosting an application on Windows Server 2008 Standard running SQL Server 2008 SP3.

Clients access the application through Remote Desktop Connections.

My Problem

  • Two different clients use the same application but with different data sets. The application only recognizes a specific DB name, so there is no way for me to change the DB name becuase the application will simply not accept it.
  • SQL Server will not allow me to Attach two different versions of the same DB file(Same File Name)

How can I get SQL to utilize a different DB file (file names being the same) depending on which client is logging on to the Server via Remote Desktop ?

FLAT FILE LOADING ERROR IN SSIS

$
0
0

can any one say what is the solution for this error :

Getting while loading data from flat file to another flat file using Conditional split in SSIS

"[DTS.Pipeline] Error: component "lines" (530) failed the pre-execute phase and returned error code 0xC020200E. "


Attunity Destination component, does neither re-direct data truncation rows nor does insert into the table

$
0
0

Hello Team,

 Need your expert suggestion and help, we have a situation, where we are using Oracle Attunity Destination control, we have situation where from Oracle Attunity Source we are getting data let's say 30 char, where as in Oracle Destination the data mapped to column size is 5, so basically data truncation will happen and will not be inserted into destination, so Oracle Attunity Destination component should fail or rediected those rows a rejected, but we have strange sitatuion where it does redirects to rejected path or fail or does in inserts.

We have looked all the possible way to try, need your help. thx

Shri.

Viewing all 24688 articles
Browse latest View live


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