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

SSIS package - tabletransfergenerator error

$
0
0

Hi all. would like get some expertise advice here. I have an SSIS packge that run on sql server 2005. and recently i migrate the package from 2005 to 2012. when run the package, it show the error as below, appreciate your advice 

error message: the task has failed to load. the contact information for this task is  "TableTransferGenerator Task"


Installing Integration Services in Existing Cluster

$
0
0

Dear Support

I need to install Integration Services in Existing sql 2012 Cluster. As per the below its possible

http://blogs.msdn.com/b/psssql/archive/2010/07/29/installing-sql-integration-services-after-sql-cluster-setup-has-completed.aspx

I need to know to answer for the below which is mentioned in the above link

"Don’t forget to alter you <ServerName>.\SQL2008</ServerName> property in the MsDtsSrvr.xml file to correctly point to your SQL virtual server name rather than the default “.\InstanceName” that is currently there."

Where I can find the file MSDtsSrvr.xml?

What I have to put in may case, my sql instance is Default "MSSQLSERVER" and my sql cluster name is "SQL".

Thanks in advance


Muhammad Faheem

SSIS 2012 - The RPC Server is not available

$
0
0

Hi,

I am trying to connect to an SSIS server (SQL-B) from a remote server (SQL-A) via Management Studio. Both servers are in the same domain and the TCP port 135 is open on SQL-B. I receive the following error message:

"The RPC Server is unavailable."

Could you help me with resolving this?

Many thanks.

P.

Toolboox inactive (not SSIS Toolbox)

$
0
0
Guys, stupid question: why the toolbox is always inactive? I am not talking about the SSIS Toolbox but just the toolbox.

SSIS 2012 : Custom component error port

$
0
0

Hi There,

             I am working on creating a custom component. I would like to know if I can add extra columns to an error output collection like as shown below :

var errorOutput = this.ComponentMetaData.OutputCollection.New(); errorOutput.IsErrorOut = true; errorOutput.Name = "Error Output"; errorOutput.Description ="Error Output for the Data Cleaner transformation"; errorOutput.HasSideEffects =false;// Determines if component is left in data flow when run in OptimizedMode and output is not connected errorOutput.SynchronousInputID = input.ID;

IDTSOutputColumn100 MyColumn = errorOutput.OutputColumnCollection.New();

MyColumn.Name = "MyColumn1";

MyColumn.SetDataTypeProperties(DataType.DT_STR, 20, 0, 0, 1252);

I know it works for regular output column but can a new column be added to the error output collection as well?

Thanks,

Raj



Raj

Need to execute a SQL Server Agent Job from SSIS package

$
0
0

Hi There,

I need to execute a SQL Server Agent Job from an SSIS package. I can see two options using

1) Execute SQL Task  

2) Execute SQL Server Agent Job Task

out of these two which is the best way to run (performance wise and/or other factors)?

how to search a table in mutiple packages

$
0
0

I have 5-6 table and wanna to make sure if I'm using any of them in my Packages and I do have 100 Packages.

Could you please let me know shortest way to search these tables in Packages.

Thanks,

Who will be crowned the last SSIS Guru of 2015!!

$
0
0

Here it is folks!

THE FINAL CHALLENGE OF 2015!!

Step up all known Gurus currently active!

Let us see the year out in style, with some final thoughts and knowledge from everyone we love and follow in the TechNet and MSDN community.

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

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!


Using Power Shell to Replace \N

$
0
0

Hello,

I'm trying to use PowerShell combined with SSIS to replace "\N" with "" for a project where empty string is used to denote null. I'm new to PowerShell and can't quite get the syntax correct. I've tried putting parts from different online examples together using PowerShell ISE to debug, but can't quite get the syntax for the replace portion of the command.

powershell-command"& {(get-content C:\Users\MyFiles\Desktop\file1.txt) | % {$_-replace"\\N",""} | set-content C:\Users\MyFiles\Desktop\file2.txt}"

Any ideas what I'm missing?

Thanks

SSIS script in VBA code for excel manipulation

$
0
0

Hello Folks,

I am looking for SSIS script in VBA code for excel manipulation where I want to calculate auto sum of a column where row count is not fixed.

Thanks in advance.

SSIS Packages Deploy and Execute with Windows Authentication or Sql Authentication

$
0
0

Hi

I have Created some SSIS packages , my first  question is to Deploy this package to Integration services catalogs   in SQL 2012  do I need windows authentication , Can I deploy this packages with SQL authentication.

My second question is How ever if I  deployed this packages to Integration services catalogs  Can I Execute this packages with Sql Authentication ? do I need Windows Authentication ?

Thank you 

Harsha 


Table Not Being Truncated With a SQL Server Agent Job

$
0
0

Good Afternoon Forum

Over the past couple of days I've moved a SSIS package from 2005 to 2012 as it wasn't processing the files and it was creating a huge backlog.  Essentially the Package downloads a zip file, extracts the csv's, uploads one of the CSV files into a table and then performs some data processing.  This Package has been updated to 2012.

Yesterday I copied this Package as "Adhoc...." and removed the step to download the zip file, copied the zip files to a tmp folder; then created a job to with steps to execute the DTS, delete the zip file, delete the csv files and then finally to truncate the data loaded via the CSV.

All steps are being executed apart from the Truncate; does anyone have any clues?

SQL Server is 2012 Enterprise, the Job owner is "sa"; the same Service Account is used by all Services and it is a domain account, Service Account has Sys Admin privileges, all preceding steps are configured to go to next step on success; job is configured to email on completion.  The email states the Job was successful.


Please click "Mark As Answer" if my post helped. Tony C.

SSIS: Error in package when no source excel file available

$
0
0

Hi All,

I have created a SSIS package to load data from excel files. I have kept 2 different dataflow to take 2 different excel files. I will be getting file 1 every week but file 2 will get once in a month. Filenames will be same always. SO, I have kept a file archiving mechanism at the end of the package. I the files are successfully loaded, then it will be archived to a folder. I was getting error if no files available in source folder. How can I avoid this error. I have created a job to run the package once in a week. But there may be cases we will got get data every week. Also, file 2 will get once in a month.

Please help me to resolve this issue.

Regards,

Julie

Execute SQL Server task: Locking?

$
0
0
When you execute a delete query using an Execute SQL Server Task, does it lock the table until it is executed or can it wait?  Does the timeout on the task govern the execution of the component?

SSIS Executing Delete from Table; Need to wait until table unlocked

$
0
0

I am working with a temporary table with two asynchronous packages.  One package (Package A) is writing batches of records to a table (calling it TableX), each record with a Batch ID. A second package (Package B) is processing batches of records, then deleting the processed records from TableX.

I have Package A putting a lock (fast load) onto TableX, so when Process B tries to delete there are two potential problems:

1.It doesn't retry and moves onto the next batch

2.It performs a partial delete as the table is locked by Process A.

There may be better ways of doing this, but this illustrates a problem: How can I guarantee that the delete executes?  If I find a way of grabbing a lock on TableX, what stops process A from failing when it can't gain an exclusive lock?  


SSIS VB script to download file from URL

$
0
0

Hi,

I want VB script to download file from URL in SSIS package

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37

$
0
0
I am using SSIS 2008, trying to import several Excel files into SQL Server using a FOREACH loop.  I can successfully do this for just one file.  But now I specify a folder containing Excel files and it errors although it does write some records.  All Excel files have same columns and format.  And I only need data from the first worksheet in each file.  

Caveat is that the worksheet names between files differs slightly.  My boss wants a solution that is permanent without intervention so that each year customers can upload a new file and SSIS package doesn't need to be changed.  So although I could manually change worksheet name(s), this is not ideal.  Also a loop looping through all Excel files in specified folder is what he wants.

Here is the error I get in SSIS when I run my SSIS package using variables:

SSIS package "Package2.dtsx" starting.
Information: 0x4004300A at Data Flow Task 4, SSIS.Pipeline: Validation phase is beginning.
Information: 0x40043006 at Data Flow Task 4, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task 4, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x4004300C at Data Flow Task 4, SSIS.Pipeline: Execute phase is beginning.
Information: 0x402090DF at Data Flow Task 4, OLE DB Destination [212]: The final commit for the data insertion in "component "OLE DB Destination" (212)" has started.
Information: 0x402090E0 at Data Flow Task 4, OLE DB Destination [212]: The final commit for the data insertion  in "component "OLE DB Destination" (212)" has ended.
Information: 0x40043008 at Data Flow Task 4, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task 4, SSIS.Pipeline: "component "OLE DB Destination" (212)" wrote 40 rows.
Information: 0x40043009 at Data Flow Task 4, SSIS.Pipeline: Cleanup phase is beginning.
Information: 0x4004300A at Data Flow Task 4, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC0202009 at Data Flow Task 4, Source - 'AM Product Actions 2010$' [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Data Flow Task 4, Source - 'AM Product Actions 2010$' [1]: Opening a rowset for "'AM Product Actions 2010$'" failed. Check that the object exists in the database.
Error: 0xC004706B at Data Flow Task 4, SSIS.Pipeline: "component "Source - 'AM Product Actions 2010$'" (1)" failed validation and returned validation status "VS_ISBROKEN".
Error: 0xC004700C at Data Flow Task 4, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task 4: There were errors during task validation.
Warning: 0x80019002 at Foreach Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package2.dtsx" finished: Failure.


Advice?  When I looked at the data added to my SQL database, only records from the first Excel file were added.

SSIS Script Task Logging

$
0
0

Hello,

I am a rookie when it comes to Script Task logging in SSIS.

I have a very simple SSIS ETL package that moves data from one table to another table.  I am adding logging, but I am only able to log metadata (very cryptic: HRESULT 0xc020801c) . I am able to produce this error when I change the column name in the destination table, creating a mismatch.  I would like to log the SQL error that would blatantly state the nature of the error as a column mismatch.

How can I log the SQL Error message that would report this error with the column name, etc.?

Thank you so very much for your time and experience.

Sincerely,

Matt

Dynamic creation of XML file from multiple tables using SSIS

$
0
0
  • I am fairly new to SSIS. I have a requirement to generate a xml file dynamically from multiple tables using SSIS.
  • I know the process of just writing the sql as xml in the oledb source and then creating a flat file destination and generating the file
  • But the requirement is different  - they want to create metadata such as which vendor, all the columns and if the column is a attribute or collection and so on. So, how and where do I create the metadata and how to use the metadata to generate the xml file for a different vendors 
  •  Theere are 5 tables and the information would be as below
  • <Root> 
  • <schedule>
  • <scheduledetail1>
  • <scheduledetail2>
  • <scheduledetail3> 
  • <cast>
  • <a>
  • <b>
  • </cast>
  • <director>
  • <a>
  • <b>
  • </director>
  • <advisories>
  • <a>
  • <b>
  • </advisories>
  • <genre>
  • <a>
  • <b>
  • </genre>
  • </schedule>
  • </root>

So one is main table and the 4 tables are collections. 

Is there any samples step by step to get this task done.I would appreciate any help.

Thanks


Use DIR in SSIS

$
0
0

I need to compare 2 folders and copy files from folder A to B only if the file doesn't yet exist in folder B.

The folder has many sub-directories and over 100K of files.

The job should run every 15 minutes.

I have to read the files in the folders in the best performning way.

I know how to do it using the "Foreach File Enumerator", but it is too slow. Other method as this one http://www.allaboutmssql.com/2013/02/ssis-capture-filenames-while-looping.html is very nice but also too slow.

I tried to use the old DIR  /B /s from a "process task" into a text file and load it as a flat file.

My questions:

A. Is there a nicer way to do it as fast?

B. How do I use the DIR. What should be the command? (I know that the command for the copy should be the XCOPY.EXE with its path, but here it doesn't work if i specify DIR as the exeutable)

Viewing all 24688 articles
Browse latest View live


Latest Images

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