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

Error Column Name

$
0
0
I am trying to retrieve the error column name information on redirected error rows at an OLEDB destination component.

SSIS providing only Errorcode and ErrorColumn information.

I get the value of the ErrorColumn integer is also the LineageID, but I'm not sure how to use that to get the Error Column Name. 

I've search google and can't seem to find an answer or script for this.

Is there an updated method to finding this out?

OLEDB Destination in SSIS

$
0
0

Hi,

Can anyone tell which property in SSIS OLEDB destination which will improve performance of insertion in table which is having billions rows in table.

SSIS - Triple nested for each loop not taking values of second iteration

$
0
0

Hi all,

I have an SSIS package that needs to loop over 3 containers before executing a stored procedure.

The problem is that the result of the stored procedure contains NULL for the second result of my iteration.

When I debug the package before going into the stored procedure, all variables contain a value.

Is anyone familiar with this issue? THe configuration in the foreach loops seems correct

Loop over each stratum 

-Variable Stratums object

-Variable stratum integer

Loop over each regional office

-Variable RegionalOffices object

-Variable RegionalOffice string

The SQL - CALCULATE MIN/MAX/AVG contains all 4 varibales

-InvoiceDate, Stratum, RegionalOffice and Bonus year

Querying SSIS XML definition - package deployment method

$
0
0

Hello,

I need to query the xml defintion of SSIS packages which we have deployed using the package deployment method.

These packages do not exist on the msdb.dbo.sysssispackages table but on the catalog.packages table on the SSISDB database.

Is there a way of querying these packages? We are using SQL 2014 and deployed the packages using Visual Studio 2013.


Thanks

Is BIML really useful?

$
0
0

Hi All,

Using BIML we can write a code in XML like format and create SSIS package out of it. This can be used when repetitive tasks are to be performed and we can use the same BIML code and use it to create package.

But I think that to write this code in first place, we should know the code/tags first and better way is to copy paste the existing package and change it manually from UI itself.

So how BIML is so different here?


Cheers
Vaibhav
MCSA (SQL Server 2012)

Use Variable in Config File To Set path and exe in Execute Process Task

$
0
0
Trying to use a user variables to concatinate the file path and command file name to run a simple file copy in an execute process task in order to not hard code this information in the package as it will change across environments. I have the use variables set up and use the expression builder to concatinate the 2 variables to set the executable  property at run time to them ( here is the expression, @[User::BatchJobsPath] +   @[User::CopyCmdFileName]). I set the executable to a dummy.bat file name to get around the design time error, I have set the config file to be confirgured for these 2 variables as shown below, but get an error "the executable is not specified" when I try to run the execute process task. 

Should be simple enough, set a couple variables in a config file to resolve the executable at run time, what I am doing wrong? is there an easier way?

</Configuration>
-<Configuration ValueType="String" Path="\Package.Variables[User::BatchJobsPath].Properties[Value]" ConfiguredType="Property">
<ConfiguredValue>C:\CommandFiles\</ConfiguredValue>
</Configuration>
-<Configuration ValueType="String" Path="\Package\Copy TestXLS.Variables[User::CopyCmdFileName].Properties[Value]" ConfiguredType="Property">
<ConfiguredValue>CopyTest.bat</ConfiguredValue>
</Configuration>
</DTSConfiguration>

SSIS designer (VS2013) customize look when disabling a task

$
0
0

I am in used to creating SSIS packages in VS2008 and it was very easy to see when the task was disabled. The gray color was very distinguishable from the tasks that were not. Now with the new designer for VS2013, both enabled and disabled look very much alike using the gray color as the background.

Has any one found this difficult too to distinguish between enabled and disabled tasks?

Have you been able to change something to be able to see it more clearly?

By the way, in my opinion I also like better when the whole task turns colors instead of a little icon on the right. It easier to see when having big SSIS packages and needing to confirm all tasks ran successfully.

Thanks!


Paulino

Colors of Sequence Containers

$
0
0

Today, I'm being a pest.

I've made an SSIS package with several Sequence Containers and assorted tasks that are uncontained. However, all those white box headers makes it hard to visually comprehend.

So, I wondered if it's possible to color the boxes associated to the Sequence Containers. I didn't see any color options in the Properties window, so I figure the answer is "No," but I thought there might be a back-door way to do it.

Is there?

Thanx in advance!

Oh, forgot - I'm using Visual Studio 2008.


SSIS - output flatfile coloumns not populating in order

$
0
0
Hi - I am using OLE DB source as connectionManager setting up by giving SQL command.When I hit preview it shows coloumns in proper order. But when I hit coloumns tab, the order is changing ? why is this doing ? So, when I connect a flatfile destination, coloumns in random order are being generated. How can I fix this ?

MBH

Flat file (.csv file) to insert in table - using SSIS

$
0
0

Hi - I have other steps that I am working on SSIS package, and in the middle I have a requirement where I have a flatfile in the folder, SSIS task should read from that folder and insert in SQL table.

What is that I need to do here ? How can I achieve this ? taking file and inserting into sql table ?


MBH

SSISDB Security Granularity

$
0
0

Hi,

I have a scenario where we have deployed the SSIS project using the Project Deployment model. We are done with the development and we have to hand over the deliverables to the testing team. Although the SSIS runs via a SQL Server job, but the testers may need to play around with the project parameters during multiple cycles of testing.

I have looked through a number of articles online but all of them suggest granting the user (Tester) access to the project folder under SSISDB.

My requirement is to grant them just enough access so that they can play around with the just the project parameters. Otherwise I would not have any other option but to give them the access to the full folder.

Cheers!!


Cheers!! Sumit Bhatnagar

Sensitive check for SSIS catalog environment variables not visible in the Management Studio - SQL Server 2014

$
0
0

Hi,

I'm working on a remote vm having a SQL Server 2014 installation.

In particular, I'm creating some environment variables for a SSIS solution deployed in the SSIS catalog, but I cannot set the sensitive check to obscure the password for a connection.

I've tried to change the screen resolution (really, when I access via rdp on the machine, this resolution is unchanged), the icon dimension, the size of the font visible in the control panel, without any results.

How could I solve this issue, please? Thanks

Convert all output columns from text file to null if blank

$
0
0

I have a flat file data source going to a SQL Server table.  There are over 300 columns.  Many of them are blank, and if they're blank I want them to be null in the destination table.  Currently I have a derived column transform that does this.

THREE HUNDRED TIMES.

I know that you can't see all of it.  The basic idea is

(DT_STR,100,1252)((DT_STR,100,1252)TRIM(BUS_UNIT_DESC) == "" ? (DT_STR,100,1252)NULL(DT_STR,100,1252) : (DT_STR,100,1252)TRIM(BUS_UNIT_DESC))

Is there an easy way to do this kind of thing?  The only issue I could see with some kind of "automation" of this is that fields all have different lengths as seen above.  Most are 50, but some are 100, etc.

An update to the table after the fact is just not feasible.  There are tens of millions of rows and updating with an NULLIF or something is out of the question.

Thanks!

SAP BW - Microsoft Connector - How to configure

$
0
0

I just need some clarification on where/how to setup and use the microsoft connector for sap bw.

I have microsoft sql server 2014 running on a large server. The database and ssis services are running.

On my desktop/client, I'm running the development studio. I've created and deployed ssis packages from by desktop/client to the server running the database and ssis.

I now wish to get data from sap bw and load into my database server using ssis.

1. Where do I install the microsoft connector? My ssis development will be on my desktop but, if I try and install there, I get an error stating ssis is not installed.

2. If I install the microsoft client on the server running the db and ssis services, do I then have to use the development studio from that server or can I still use the one on my desktop?

Thanks for any clarification.

 

Unable to Install Microsoft Connector 1.1 for SAP BW

$
0
0

I already have had installed the SQL Server Enterprise with Integration Services and now while I am trying to do the install for Microsoft Connector 1.1 for SAP BW..I keep getting the message ...

Setup is missing an installation prerequisite..

-Microsoft SQL Server 2008 Enterprise with Integration Service. To continue, 

install Microsoft SQL Server 2008 Enterprise with Integration Service and 

then run the Setup operation again

The same is already installed..what am I doing wrong


Restricting number of decimals in flat file export

$
0
0

Hi,

I have an SSIS package which gets its data from a query executed on the database. I need to load this data into a flat file. I am using ragged right export, so my destination has fixed length fields. 

Now I have a float field named "Amount" in the source which has to be restricted to the format 000000000.00. I get Amount in this format by using CAST(Amount AS DECIMAL(11,2)) in the query. But when this data is loaded into the flat file it is loading a number of digits after the decimal like for example instead of 3383626.63 it is displaying 3383626.6299999999. Since my destination file has fixed length field this is resulting in an error.

The error description is this - "[Flat File Destination [1178]] Error: Data conversion failed. The data conversion for column "Amount" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.". 

Please help me with this issue.

 

Tool to produce documentation about a SSIS package - SSIS 2008-2012-2014

$
0
0

Hi,

I'd like to know if it exists any tools (possibly free) to produce documentation about a SSIS package, f.e. to extract the column mapping from a data flow task.

Any helps to me, please?

Thanks

SSIS Task Won't Execute

$
0
0

Hi,

Attached screen is a partial flow of my SSIS which the Foreach Loop Container is not being executed.  From my first design, I only have the Foreach Loop Container which runs fine without issue.  Due to programming spec changes, I added the Expression Task and process A to run prior to execute the Foreach Loop Container.  Once I did that, SSIS stop at either the completion of the task A on Sunday or it stop before execute the Foreach Loop Container on weekday.  Any idea why it does not execute the Foreach Loop Container?  Did I miss something here?

Thanks,Foreach Loop Container not executed


Brian

Calling all SSIS Gurus!! It's time to MARCH into the history books!

$
0
0

It's another month, and another chance to find... the one!

That special person who brings us... the knowledge!

That thing we didn't know.

That revelation that saves us so much bandwidth on the search tool.

Clear and concise revelations that bring us closer to our goal!

You have that power my friends!

Step forth with words of wisdom!

Step up and let us know your name!

Carve your mark on the community... and history!

MARCH forth and win glory, fame, love honour and immortality!!!! (in the form of the written word... kind of...)

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)  <----

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Below are last month's mighty winners and contenders!

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!


Microsoft connector 1.1 for SAP BW Installation Error.

$
0
0

Receiving an error while trying to install 64 bit Microsoft connector 1.1 for SAP BW.

"Setup is missing an installation prerequisite: - Microsoft SQL Server 2012 with integration services

To continue, install Microsoft SQL Server 2012 with integration services and run the setup program again"

 I installed the following component on my Windows 7 Desktop:

Sql Server Data Tools

Integration Services

Client Tools SDK

Management Tools

I could see SSIS service running in SS configuration manager but still getting the error.

Any help to get this installed will be greatly appreciated.

Thanks

Viewing all 24688 articles
Browse latest View live