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

Capture the task name

$
0
0

I have some custom audit logging, and now I need to capture the task name right before the task is executed and log the task.  I am doing this in the preexecute event handling, but I do not have the vb skills to set variable.  I know the vb script would look something like:

value Dts.Variables("LogPackageName").Value = 

Thank you in advance


How to Query DB2 on AS400 by using SSIS (DataReaderSource)

$
0
0

Hello,

I am trying to pull the data from DB2 by usingDataReader Source as my Source and I am querying the table which is on DB2.

 

Here is my configuration:

 

1. I have local ODBC which connects to DB2 as my Connection Manager.

2. Created a DataFlow Task

3. In the DataFlow Task, I have DataReader Source

4. In the DataReader Source Advanced Editor

Connection Manager --> Provided my ODBC Connection to DB2

Component Properties --> SQLCommand (Here where I am having issues with the query)

 

When I am providing is SQLCommand

From the below query

 FDLXCNV2 is DB2Library and PDTMSTR is my Table.

 

SELECT * FROM FDLXCNV2.PDTMSTRà This works perfectly fine and I get the data into the SQL Table as my destination.

 

When I am givingconditions to the Query

 

SELECT * FROM FDLXCNV2.PDTMSTR

WHERE PHTDCY = 0

 

I am cannot go further it errors out with below message:

 

Error at FDLXCNV2_PDTMSTR [DataReader Source [1]]: An error occurred executing the provided SQL Command.

 

I have tried withalias that did not help

TriedWHERE FDLXCNV2.PDTMSTR.PHTDCY = 0 (this did not help)

 

How can we Query DB2 TABLES from our SSIS DataReader Source?

 

I have tried this fromTeradata editor in that interface my query is working fine and I get the data what I want to see. How can we do this from SQL point of view?


Karumajji

AS400 info extraction with SSIS using expressions.

$
0
0

Hello

I'm trying to create an ETL where is supposed to make an extracction from AS400 using an OLE DB connection.

Everything seems to work fine but if the qry contains a restrction (the Where statement) the package runs put makes no extraction.

Even more wired, if I execute the extraction step individually it works and make the extraction of data, but running the package as a whole (F5) it doesn't make any extraction.

Any idea why?

Thank you

Insert data into Header & Detail table from XML through SSIS package.

$
0
0

I need to insert data into Header & Detail table.

As shown in the below xml, RecordID is identity-column and incremented by 1, after new record is saved into Header table.

Need to assign the same recordID for the detail also.

XML

Expecting output should be like as shown below:

Please let me know, how can we accomplish this requirement.

Import different excel file with different schema to different table in SQL Server

$
0
0

Is it possible to import different excel file with different schema to different table in Sql Server dynamically.

Let say i have two .xls file 

1. Employee.xls(empid, ename,salary,detno)

2.Department.xls(deptno,Dname,Dcity)

Need to import into 2 different table in Sql Server named 'Employee' and 'Department'. It should be done by using variable.

Is it possible to create table schema as of .xls file dynamically.

Please suggest. 


Extract Data into Excel

$
0
0

Hello Everyone,

I'm trying to extract the SharePoint List data into excel file using SSIS package. I'm using SharePoint 2013 and BI 2008 R2. 

But i don't have any idea how to do it. please share some reference link or code..

Regards

Parth

Be our SSIS Guru of the month! Let us bestow glory and kudos upon you!

$
0
0

TechNet Gurus... we salute you!

You're awesome, and we know it!

Your knowledge uploads and nifty info nuggets are our life blood at TechNet Wiki.

Every awesome article that gets an award is just the start. We are building up the most sensational collection of gifts of knowledge from eminent community heavy weights and young guns alike. And we plan to promote you and your work wherever we can.

Reputations are being forged.

History is being made.

Generations will know your name.

Your children, grandchildren and great-grandchildren will marvel at your technical prowess.

And now, my mighty code warriors, cool consultants and platform specialists, now your chance is here again.

A new month of possibilities. Another chance to prove YOU are the ONE!

The mighty TechNet Guru medal winner for June!

Take up your mouse and keyboard!

Unleash your mighty words of wisdom and bask in the glory that we bestow upon you!

 

GO GO Gurus! Give, give, give!

 

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.

Feel free to ask any questions below.

More about TechNet Guru Awards

Submit now : http://social.technet.microsoft.com/wiki/contents/articles/31200.technet-guru-contributions-june-2015.aspx

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!

error when preview data on SSIS

$
0
0
error[42000][mysql][odbc 5.3 (a) driver] mysqld-5.6.21 -log] where prview a data

Generate SSRS report using SSIS

$
0
0

I have created a report using SSRS 2012. To create a pdf report, I use SSIS 2008. When I run debugging in SSIS, the pdf report is generated correctly.

But when I run the SSIS as a job in SQL 2012, the pdf report is generated with o bytes. When I tried to open it with Adobe, there is error, something like - Adobe Reader could not open  PPAA.pdf because it is either not supported file type or because the file has been damaged.

Thanks.

Istallation of SSDT on Corporate machine

$
0
0

I want to work on SSIS for which I need to install SQL Server Data Tools (SSDT) on my machine.

I found that the SSDT can be downloaded from Microsoft's Website http://www.microsoft.com/en-in/download/details.aspx?id=36843

Now my question is, do i need a license to download and install this application on a business owned machine i.e. I will be using this application for my business process related POC's

The IT resource team at my office is not sure on this, hence I thought of reaching out to this forum.

This is just to ensure that I accidentally do not cause any license or permits related issues with Microsoft.

Thanks in advance,

Suvrat

FIPS and SSIS Scripts

$
0
0

Is the issue where FIPS needs to be disabled in order for scripts to be run in SSIS for SQL Server going to be patched/fixed etc...?

here is a url regarding the issue.  kb2925865 is a reference

thanks

Barry

Macros / Scripts to access the SSIS meta model - Generate Custom Documentation

$
0
0

Hello, Good Morning,

I am new to SSIS and wanted to know if SSIS has any macros that can be used to generate custom documentation. as an example, MS Excel has VB scripts that users can create to automate various repetetive tasks.

In my case, there is a complex IT architecture that has SSIS jobs loading data from source and between different layers. I cannot go through each SSIS package manually and document the source, target, lookups and the diagram.

Therefore, I was wondering if :

> There is a way to write some script / macro that could access a project

 > Access all packages in the project

> Access each job, get the Source, Target, lookups, transformation logic etc ...

> Get a JPEG equivalent of the design

> Collect all of them together and compile it in a report in a file format which may be either a PDF or Excel or Word...

Is this feasible? Or do I have to manually go through each package and document our client's IT system?

Regards,

Passing value in file to stored procedure

$
0
0

Hello - I am trying to read a flat file that contains a number like 256395 for example. I want to store this as a variable then pass it onto a stored procedure to run then saves the results to a flat file. I am confused on how this would work any help would be greatly appreciated. Thanks.

SSIS Bulk Insert Fails on Unicode File with GUID Column

$
0
0
Hi,
I am using SQL Server Data Tools for Visual Studio 2012. I have a very simple SSIS package with a Data Flow task that exports from an OLE DB Source to a tab-delimited unicode Flat File Destination and a Bulk Insert task that loads from the file. Both the Flat File Destination and Bulk Import are using the same codepage. The Bulk Insert task is using the widechar format to read from the file. The process works fine with nvarchar and int columns, but when I add a uniqueidentifier column it fails with "type mismatch or invalid character for the specified codepage". Any help is appreciated.
Thanks,
Erik

Erik RHS

Importing from complicated Excel files

$
0
0
I have several regular reports that are produced by different offices that I need to import the data from.  The challenge lies in the fact that the reports are not simply columns of data.  Some cells are labels, others contain data, and some contain both.  Also, the formatting of the reports isn't strictly uniform from office to office.  Is it possible to read this kind of sheet?  Excel data sources seem to just define everything in a column as data, and that doesn't work for me. Is there an alternative, or perhaps a more manual way of defining what cells contain data?  Also, some have the annoying habit of renaming sheets, which I'm sure will cause further problems.  

The type of the value (Empty) being assigned to variable "User::FileName" differs from the current variable type (String)

$
0
0

I apologize if I am in the wrong area but it has been difficult to find any thing close to what I am trying to accomplish.

I am developing a ssis package that has a flat file source.  the file name is 060315.txt , I have a script task that will build the 060315 portion of the connection string.  I have created a Package level variable User::Filename set to type of string.  When setting the value of the variable I get the following error ;

Error: 0xC001F009 at Package: The type of the value (Empty) being assigned to variable "User::FileName" differs from the current variable type (String). Variables may not change type during execution. Variable types are strict, except for variables of type Object.
Task failed: Script Task

I can't use an datatype of object as it cannot be used in the following experison "\\\\fmhqnetapp2\\ERPShare\\" + @[User::FileName] +".txt" (used in the data source connection)

script task code:

                          

Variable FileName  has a scope of Package, Data type string,  value is the original 060315.

public void Main()
{
// TODO: Add your code here

            string filename = System.DateTime.Today.ToString("MMddyy");
            if (Dts.VariableDispenser.Contains("User::FileName"))
            {
                //Dts.Variables.Add("User::FileName", false, "ST_0c0c55960b724d26a9dd0f5a98340b5c", filename);
                //MessageBox.Show(Dts.Variables.Count.ToString());

                Dts.Variables["User::FileName"].Value = filename;
                Dts.TaskResult = (int)ScriptResults.Success;
            }

            else
            {
                Dts.TaskResult = (int)ScriptResults.Failure;
            }





}

Thanks in advance;

How to achieve check point like functionality in data flow task itself in SSIS

$
0
0
I have huge data and i am loading data from EXCEL to database table, after loading 80 percent data i am getting some error.my package got failed and it has lots of transformation and took around 6 hours to process completely because of that i don't want it to reload from start.
if i run it again it should start from next record from where i got the error.

How to make SSIS package to Run on SSIS Machine instead SQL Server Machine ???

$
0
0

Hello Guys,

Hope you guys doing great ....:)

I have query regarding SSIS package execution in my current PDW Implementation project on below scenario.

Scenario :

There is 2 machine , Machine 1 is SSIS machine delicately for package deployment and Execution and Machine 2 having SQL server database engine for Job creation and its execution.

Since SSIS machine 1 has very gud configuration in terms of Physical memory, Cores etc , SSIS package is designed to do ETL operation.

Now , i have requirement that , we want SSIS package to be executed on SSIS machine instead of SQL server machine 2

The package should use Machine 1 resource instead of Machine 2 to get high end performance.

Please suggest or help , How to deal with this requirement ??

I am in Urgent need of Suggestion or Help. Hope you guys got my scenario. let me know incase of anyother info.

Your help or suggestions will be highly Appreciated.

Thank You.


Asandeen

run SSIS package issue

$
0
0

Hi,

My computer had install SQL Server 2005 and 2008, both of SSIS is running.

But when i run SSIS package, there is a issue like this,if anyone can give some advise. thanks

Error: 2015-06-04 16:20:27.63
   Code: 0xC000F427
   Source: Create folder "session"
   Description: To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.
End Error
Error: 2015-06-04 16:20:27.63
   Code: 0xC000F427
   Source: Send Mail Task
   Description: To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.
End Error

Derived Column Transformation - Concatenation of Two Fields

$
0
0

Hi all

I have the following 2 fields that are sourced from an Excel spreadsheet

DocNumber - a 10 digit number

PostingRow - a number between 1 and 999

I would like to produce a new column that is a concatenation of these two fields, but the PostingRow needs to be a 3 digit number eg. 1000256153-001

What would be the best way to do this?

Thanks

Viewing all 24688 articles
Browse latest View live


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