Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





SSIS Package Compilation And Execution


I am wondering something, once we've created a job that executes a package at a given time interval, does that package get recompiled each time the job spins up and executes the package? Or is the package compiled once and then that compiled code is executed each run after the first run?

What I'm seein is this; I have a package that reads data from flat text files and then dumps that data into the database. The package will take 3 minutes to execute when executing on a single file, but when it's looping through ~50 files, it will take ~30 minutes to execute, that is less than a minute per file. Why is this?

Hopefully I'm just forgetting something and not setting a checkbox or radio button somewhere. The job is set up as an SSIS job, not as a command line job.

Thanks in advance for any help you can give me.

Wayne E. Pfeffer
Sr. Systems Analyst
Hutchinson Technolgy Inc.




View Complete Forum Thread with Replies

Related Forum Messages:
SQL Compilation And Execution Plan
Hi all,

I€™m having a test regarding to the image data type. The test program is written with sql native api and just update the image data type column, but I looked the SQL Compilations/sec and Batch Requests/sec counters in SQLServer:QL Statistics using Perfmon, both values are almost the same. It seemed whenever the stored procedure is called, SQLServer compiles it and makes execution plan again. But when I had a test without image data type, SQL Compilation/sec was 0. SQL version is Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) (Build 2600: Service Pack 2).

Is SQL server working the way expected or am I missing something?

View Replies !
SSIS - Tracking An SSIS Package Execution
I would like to see if someone can help me out.
 
Scenarion:
1.- SSIS Package execute tasks on 2000 SQL Server Database
2.- Execution takes places using Business Intelligence Studio
Question:
1.- How can I tracked that SQl 2000 tasks took place using a SSIS Package?
 
Thanks

View Replies !
SSIS Package Execution
Hi all,
I am Hazara. I am trying to call a SSIS package from a web service. But package.execute() method is returning 'failure'. Though I am able to execute the same package from a normal .Net project and it is working fine (using the same code that i have used in web service).

I have also tried to execute it through stored procedure for which firstly I created a .dll in c#(which is perfectly working) and then I registered this .dll in sqlserver-2005 using following command.


CREATE ASSEMBLY asmPackageExecuter FROM 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727PackageExecuter.dll'
WITH PERMISSION_SET = UNSAFE
GO
Now on calling the method of .dll (which is responsible to execute the package) I am getting the DTSExecResult as 'success' but data is not getting transfered from one able to other as was expected from the package.
 
Please help me. I have searched it everywhere on net but didn't get any solution.
I want to execute package only through web-service or stored-procedure

Thanks
Hazara.

View Replies !
SSIS Package Execution
 

Hi all,
 
Which is the best way to execute SSIS packages? I have no problem to use dtexec command but I want it to run every night. Is this going to be done through the SQL Server (SQL Server Agent under Jobs)? Is the type going to be Operating System (CmdExec) or Transact Sql? How exactly is the command written there?

Thanks in advance. 

View Replies !
Visualize Execution Of SSIS Package
Hello everybody!

 

I have a question - is it possible to visualize an execution of the SSIS package when it is being run from SQL Agent? "Visualize" means to show a data-flow "live" - similair to the visualization provided by BI Dev.Studio when you run a package there, with coloured boxes, blinking etc.

 

I searched the Web but found nothing - neither MS-related nor utilities from third parties. Is it possible in any way?

 

Thanks in advance,

Andrey.

 

P.S. Parsing log-files is an option, but we would like to try first something less "painfull" and more universal...

View Replies !
SSIS Package Execution Delay
I am currently experiencing a 30 second delay when starting an SSIS package from a query window or stored procedure in SQL 2005 Management Studio, using xp_cmdshell and dtexec.
 
When I run the package in BI Dev the execution results state an elapsed time of 4.82 sec, at a command prompt using dtexec the elapsed time is 3.48 sec, from MStudio the elapsed time is 33.86 sec, this test was run using the same configuration and databases.  For the MStudio run, if I look at the DTS log file I€™m creating or the PC Application log, it states the package doesn't actually start until 31 sec after the execute button is pressed.  I€™ve tried executing the package as both a SQL package and a file package without any difference in elapsed times.  I have also set DelayValidation = True for every Task, ConnectionManager and the package itself.
 
When I look at the package log one difference I see is that the Management Studio executes using €˜NT AUTHORITYSYSTEM€™, BI Dev and the cmd prompt use the local user €˜[Server]Administrator€™, which in this case is the administrator.  From this I have to believe it is some kind of user rights problem.  I think SQL or the OS is waiting for something and after it times out at 30 sec, it allows the package to run.  If this is the case I€™m not sure what it might be or how to find it.
 
I also tried making an xp_cmdshell_proxy_account with admin rights but this didn€™t seem to work either.  I€™ve included the query code below.  Any ideas, help or solutions are greatly appreciated.
 
DECLARE @cmd varchar(250)
DECLARE @Result INT
 
SET @Result = 0
--SET @cmd =  'dtexec /F "C: empDP2000 DataTransfer.dtsx" /DE ttalg /REP EW'  
SET @cmd =  'dtexec /SQL "DP2000 DataTransfer" /DE ttalg /REP EW'  
 
EXEC @Result = xp_cmdshell @cmd
 
SELECT @result
 

View Replies !
Speed Of Ssis Package Execution
I would like to know how long will my package take to run if i have 2 million records to be inserted to my database.

Its taking hours( arround 5 hours or more)...is that the way it is????? i used oledb destinations..

i am transfering from text file to sql server database.

 

And one more thing which i want to know is...

Is is better to have several data flows where in one i check to see if the incoming records are valid.and have my insert or update logic in the other.

 

Will this increase the speed..

 

 

View Replies !
SSIS Package Execution From C# Code
 

Hi All,

 

This not a problem but here i wan to give u my some trial on package execution from C# code.

i just want to make sure whether this is right way or not?

 

I need to upload some processed text file into table using SSIS packages. I m calling these packages in runtime for different source text files passed to it.

 

I first created package on my machine and deployed packages on Sql server using default protection level. So when i m tryng to execute it from integration services it wont work giving some exception in AquireConnectionCall() , its coz all the sensitive information is stroed inside package is not available to that machine.

 

In C#

Now i m loading this package using LoadFromSqlServer().
I am creating connection manager object for each of source and destination type and then setting all sensitve information from my solution's config file.
Set the protection level of package and available connection managers to DontSaveSensitve.

by using this method m able to execute any package created on any machine with default protection level.

 

Can any one of tell me -ve aspects of this approach?

 

Thanks

View Replies !
How To Execution Of The SSIS Package Or Schedule It
 Hi guys,

 

I am basically from  COGNOS domian,  but now i am trying to learn SQL server 2005.

 

Can any one say how automate or schedule the package that it been created in SSIS.

 

 

That package contains the data flow task..

 

i have got  stuck in this

 



 

Thanks in advances

 

Lalitha

Keysoft Solutions

View Replies !
SSIS Package Execution Error
While executing the SSIS package from visial studio it is running. If we execute from Integration services -  - -> stored packages - - - -> msdb - - - -package name, the package gets executed.

 

But when scheduled through jobs it gives the following error in history

"Execution as user. <user name > The command line parameters are invalid. the step failed"

command line looks like this "

/DTS "MSDBMaintenance PlansPackage1-HYUNDAI" /SERVER tvmwindev02 /CONNECTION "10.10.1.52.upsframis";"Data Source=10.10.1.52;Initial Catalog=upsframis;Provider=SQLOLEDB.1;Integrated Security=SSPI;Auto Translate=False;" /CONNECTION DestinationConnectionOLEDB;"Data Source=mscoe.db.ustri.com;Initial Catalog=HISNA_POC;Provider=SQLOLEDB;Integrated Security=SSPI;Auto Translate=false;" /CONNECTION "sample.db2test";"Data Source=sample;User ID=db2test;Provider=IBMDADB2.1;Location=10.10.1.55;" /CONNECTION SourceConnectionOLEDB;"Data Source=SAMPLE;User ID=db2test;Provider=IBMDADB2.1;Persist Security Info=True;Location=10.10.1.55;Extended Properties="""";" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF

"

What could be the reason ?

 

Deleep.P

 

View Replies !
Execution Flow Of SSIS Package
 

Hello,
 

I want to know detail execution flow of SSIS package (like Validation -> Expression evaluation -> Execution etc.)

Where can I get detail information, any reference (links)?
 

Thanks in advance.
 

-Omkar.

View Replies !
SSIS Package Execution Error
 Hello,

 

     I have two packages which is having parent child relationship.

  

     Package1 is calling Package2, Package2 will download the input files from remote server using COZYROC SFTP Task. then Package1 will execute.

 

    It is working fine in BIDS and SQL Agent job in "DEV" Server. But it is not wroking when i deployed the packages and it's config files and then created a SQL Agent JOB to "QA" Server.

 

    The Error is:

   

Description:
The connection type "SSH" specified for connection manager "LG-AUS" is not recognized as a valid connectionmanager type.
This error is returned when an attempt is made to create a connection manager for an unknown connect
ion type. Check the spelling in the connection type name.
End Error
Error: 2008-04-23 05:33:57.26
   Code: 0xC0010018
   Source:
  
 Description:
Error loading value "<DTS:ConnectionManager xmlnsTS="www.micro
soft.com/SqlServer/Dts"><DTSroperty DTS:Name="DelayValidation">0</DTSroperty
><DTSroperty DTS:Name="ObjectName">SFTP-CMS</DTSroperty><DTSroperty DTS:Na
me="DTSID">{49D115FA-B208-4BFC-928D-7CC0964E743A}</DT" from node "DTS:Connection
Manager".
End Error
Error: 2008-04-23 05:33:57.29
   Code: 0xC00220DE
   Source: EPT Calling LG_Inbound
  
Description:
Error 0xC0010014 while loading package file "C:QATestLG-SFTPInbound.dtsx". One or more error
occurred. There should be more specific errors preceding this one that explains
the details of the errors. This message is used as a return value from functions
 that encounter errors.
.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  5:33:55 AM
Finished: 5:33:57 AM
Elapsed:  1.359 seconds

 

 

 

Please give the solution ASAP.

 

Thanks

Thiru
 

View Replies !
SSIS Package Execution Proble.
Hi,
I have a SSIS package runnig trough my sql server 2005 schedule job every one hr. it is a simple package to pull some data from a table and transfer this data into a text file. it was runnign smoothly since long time, but today its not executing through my job and giving me the following error.
 
Executed as user: GYRODATAGyroDBA. ...n 9.00.3042.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  1:13:27 PM  Error: 2008-04-10 13:13:28.18     Code: 0xC001401E     Source: Package1 Connection manager "DestinationConnectionFlatFile"     Description: The file name "\Gyrow2kefw001PURCHASESPOOLsupplier.txt" specified in the connection was not valid.  End Error  Error: 2008-04-10 13:13:28.18     Code: 0xC001401D     Source: Package1      Description: Connection "DestinationConnectionFlatFile" failed validation.  End Error  Progress: 2008-04-10 13:13:28.20     Source: Data Flow Task      Validating: 0% complete  End Progress  Progress: 2008-04-10 13:13:28.34     Source: Data Flow Task      Validating: 50% complete  End Progress  Progress: 2008-04-10 13:13:28.34     Source: Data Flow Task      Validating: 100% complete  End Progress  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  1:13:27 PM  Finis...  The package execution fa...  The step failed.

If i try to execute the same package trough business development studio its working f9.
anyone have any idea whats the problem is?
masroor
 

View Replies !
SSIS Package Execution Issue
Hi everybody,

 

I currently need help on an issue I can't find the solution.

I developed a package and I when I run it from the Integration Service directly it runs and ends correctly, deletes/creates tables on the db on the server the package is running and copy the data from the other db.

I want to specify that I use two db in different domain as source and destination.

When I schedule it using the Sql scheduler it fail reporting the following error:

 

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "DBname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

 

Can anyone of you give me a clue about the issue I have?

 

Thanks!


 

 

View Replies !
SSIS Package Sequential Execution ..
Hi Friends,


I need help from you.
I am working on SSIS packages for ETL purpose.
The version of SQL Server i am using is SQL Server 2005.

In Brief , the working of current ETL is as follows.

In ODS database i have 2 tables i.e Table_A & Table_B which gets loaded from another 2 staging tables A & B.
And using this 2 tables data will be loaded into a target table i.e Trg_A.

The ETL packages are executed by stored procedures by creating a job within the stored procedure.

The loading of the trg table is little tricky.
Before that loading of Table_A is implemented in a single SSIS package.
and loading of Table_B is been implemented in another SSIS package.

In the trg table there are two columns which will be getting updated as and when each table is loaded.
so for the first time if i run the package which is resposible for loading Table_A, it loads values into Table_A and once done it will updates (col1) in the target table.


Once after the complete of the execution of Package1.
Now i will kick off the second ssis package which loads the data into Table_B and updates the trg table's columns (col2).

Now the actual problem what i am facing is:

For loading Table_A and updating the col1 in Trg table i will be receving more than 5 excel file every month on weekly basis.
I cannot even gather all the files and run using a For-Loop counter.
So presently i am loading data excel file per week .

Similarly loading of table_B.

For a week if i am executing both the packages which loads the Table_A and updates the Trg(col1) and Table_B and updates Trg(col2), then i am getting a Deadlock Error and the entire ETL is getting messed up.


Now my requirement is , Eventhough the 2 packages are run in parallel , there could certain milli seconds time difference while start of the execution in Job Monitor.
I need to implement a Queing Mechanism which takes care of running the packages in a sequential manner rather than in parallel. i .e i need to ensure only one SSIS package is running in Job Monitor. Only after successful execution of either one the package, then only the second package should start its execution.

If we can implement such a queing mechanism , then my problem is solvedl.

I need some suggestions on this regard in implementing the Queing mechanism in a programatic approach using SQL Server Job Related MetaData Tables.
or else is there in server parameter or initialization parameters which can be set at Database level which suffice my requirement.

Any suggestions would be greatly appreciated.
Looking for sincere comments on this regards.


Thanks in advance.

View Replies !
Problem Related To Package Execution In SSIS
Hi,

 

I have the hierarchy of packages..

there are three levels..

first package (say L1) calls two child packages.(say L2_1 , L2_2)

the parameters are passed to L2_1 from L1 and it executes completely and successfully.

next step is L1 calls L2_2 without any parameters.. and package fails with error as execution of L2_2 failed.

 

when I executed L2_2 individually it successfully executes.

L2_2 itself calls 5 other packages (at level 3)..

Am not able to identify the possible reason for failure..

View Replies !
SSIS Package Execution Failed Within ASP.NET Web Application
Hello All,

I have a SSIS package which run well when stand-alone. However
it was failed when executed from .NET web application. It just simply return Failure. Code snip below:

Dim packagekgResults As DTSExecResult
.........
packagekgResults = package.Execute()

Environment: Windows 2003 Shared Server, IIS 6.0

Any idea?

Thanks in advance!

Tina

View Replies !
How To Stop A SSIS Package Execution From Code?
Hi everyone,

After a Execute method I would need to stop a package but I don't know why:

 

sResultDts = pkg.Execute(Nothing, Nothing, EventsSSIS, Nothing, Nothing)

 

I have a Events class (EventSSIS) which implements IDTSEvents and have an OnQueryCancel event but without parameters, such so:

Function OnQueryCancel() As Boolean Implements IDTSEvents.OnQueryCancel

Return False

End Function

 

Let me know how to pass a boolean parameter because of I can't overloaded OnQueryCancel method

TIA-

 

View Replies !
Execution Of SSIS Package - Security Issues
Hi all,

I am currently trying to execute my first SSIS package and am having a lot of trouble with (what i believe to be) SQL security. During the development of the package i was testing all my connection managers with the sa account. Now that i have deployed the package i want to use another account with less privelages so that my setup is more secure. I have created a new login which maps to both the database my SSIS package is using and also to the msdb database. I have created a schema and user in each of these databases which i had initially set with minimal rights. This caused certain parts of my package to fail. I then set up the login with a sysadmin server role which worked no problem at all. Finnally i then gave the schema for the user full rights and removed the sysadmin server role. once again the package fail. Surely i can't only be able to run the SSIS package with an account that has a sysadmin role?

Can anyone tell me if i am doing something wrong. The SQL server 2005 security model is so frustrating to get to grips with.

Many thanks in advance,

Grant

View Replies !
SSIS Package Execution Question In SQL Agent
Hi there,

I have been trying to schedule a package I design to run off hour, but unable to do so. Here is a strange issue:

1.  I was able to fully run and complete the package through VSS. My package has three steps and I have on complete arrows from one step to the next... When I run it, it does what I expected in SSIS designer.

2.  I was able to deploy and run the actual package by double click on the file system and it runs successfully through Execute Package Utility.

So my package does loop through a file folder and insert records from within the folder through execute SQL task to a SQL table...etc.  Typically it takes a while to run....

However, when I put the package under SQL agent and run it as a job (through setting up the sql job to call a package on the file system).  It runs and completed within a few seconds.... Somehow, it didn't give me an error, but it doesn't seem like it acutally runs the package.

Does the execution of the package somehow sends success message back prematurely to SQL job?  Why does it not successful run?

Is there any configuration setting that I am missing here?  How can I find out if it actually runs the package and why does it returns so quickly and claim successful, yet it didn't do anything??

Please help!  thanks,

Jon

View Replies !
Suspending And Resuming SSIS Package Execution
 

Hi,
 
I am using SSIS packages for transfering data from a legacy SQL server to a new one.
The database has around 700 Tables. Out of which, data from 20 tables need to be transfered.
I have created 20 data flows for that.
The SSIS package is executed using a utility program that i've written using c#. I capture all the events and use them for some post processing. I look at the status of each of the data flows (whether failed, complete, etc.. ) and take decisions appropriately.
 
There should be a provision built-into(my utility) the application that allows users to suspend the execution of the package and restart it later..
I cannot use the package's suspend function here as suspend functionality in my case means that the user could even reboot the comp. He may then restart the execution of the package from the last logical point.
My initially thinking was, that i would (somehow) store the number of records transfered to the target for a dataflow and later when the user restarts the execution,  i would change the SQL query in the dataflow to start from the records > than the one i've saved.
But how do i get the row number?? T-SQL supports row_number() but it seems that it cant be used with the WHERE clause.
Does anyone know how to deal with this problem ??
 
Is it possible to save the current execution state of a package in file and restart it at a later point (even after reboot)?
 
Cheers
Deep GZ.
 

View Replies !
SSIS Package Execution Results Alphabetical
When I veiw the exexcution/progress results for a package they show in order of the name of the task, is there anyway to see this tree view in order of the execution?
 
Thanks,
 
Casey Smith
MCT

View Replies !
Simultaneous Execution Of The Same SSIS Package From Code
Hello
 
I am trying to call the same package with different starting parameters using asynchronous method calls.
 
My code is
 

namespace ReconHost

{



 


public partial class HostContainer : Form

{

 

public delegate void InvokePackageHandler(

Microsoft.SqlServer.Dts.Runtime.Application app,
int var
);

 
Microsoft.SqlServer.Dts.Runtime.Application app;
 

public HostContainer()

{


InitializeComponent();

 



for (int i = 0; i < 2; i++)

{


app = new Microsoft.SqlServer.Dts.Runtime.Application();

InvokePackageHandler asyncInvokePackageHandler = InvokePackage;

asyncInvokePackageHandler.BeginInvoke(app, i, null, null);

}

 
}

 

public void InvokePackage(Microsoft.SqlServer.Dts.Runtime.Application app, int var)

{


Package pkg = app.LoadPackage(@"c:GRSGRSGRSTest_Async.dtsx", null);

pkg.Variables["intVar"].Value = var;

pkg.Execute();

pkg = null;

}

}





}
 
If I set the for loop to loop just once, the package is executed fine. Any more than once and only one instance of the package is executed.
 
Does anyone know what I am doing wrong? I know it is possible to execute the two package instances simultaneously because you can use DTexecUI.exe on two clients to do this.
 
Thanks in advance
Tomo

View Replies !
Problem With Recurring Execution Of SSIS Package
Hi All,

 

I have created a SSIS package which calls child packages internally. In other words there is hierarchy of packages. I am using For Loop Container with certain check conditions to execute whole set of packages repeatedly. I have to execute this set for almost 5000 times. But my problem is this set fails after every 50 and sometimes 55 cycles. Can Anybody let me know how to get solution for such a problem?

 

Regards,

Prash

View Replies !
Execution Of SSIS Package From Stored Procedure
Hello friends!
I have one query regarding execution of SSIS package through Stored Procedure.

I have created SSIS package which extract data from database and put that into various text files.Here I am using two global variables one is for Department ID and another is path where I wanna to place my text files as per departments.When I ran it through command prompt it works fine but now I want that dtsx package to run from stored procedure with same input parameters

when i searched on line i got this solution

Declare @FilePath varchar(2000)

Declare @Filename varchar(1000)

Declare @cmd varchar(2000)

set @FilePath = 'C:setupSSIS PackagesSSIS Package File Extract DataSSIS Package File Extract Datain'

set @Filename = 'DataExtract.dtsx'

select @cmd = 'DTExec /F "' + @FilePath + @Filename + '"'

print @cmd

exec master..xp_cmdshell @cmd



but when i execute it i got error like

Source: {8A27E8DF-051B-4F6B-9538-85BED1F161D8}
Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted.
End Error
Error: 2007-02-22 11:31:37.32
Code: 0xC0011002
Source: {8A27E8DF-051B-4F6B-9538-85BED1F161D8}
Description: Failed to open package file "C:setupSSIS PackagesSSIS Package File Extract DataSSIS Package File Extract DatainDataExtract.dtsx" due to error 0x80070003 "The system cannot find the path specified.". This happens when loadin
g a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.
End Error
Could not load package "C:setupSSIS PackagesSSIS Package File Extract DataSSIS Package File Extract DatainDataExtract.dtsx" because of error 0xC0011002.
Description: Failed to open package file "C:setupSSIS PackagesSSIS Package File Extract DataSSIS Package File Extract DatainDataExtract.dtsx" due to error 0x80070003 "The system cannot find the path specified.". This happens when loading a
package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.

And also I am not understand where i should pass my two input parameters which I used in SSIS package variables???????

Please help me out

Thanks

View Replies !
SSIS Package Designing And Execution In BIDS Is Very Slow
Hi,

I have created a package that has

2 SQL Execute Task, One Loop container, 2 Data Flow tasks, 1 Foreach loop container, 1 ftp task. The data flow tasks has 1 oledb source, 1 flat file source, 1 row count transformation, 1 recordset destination and 1 oledb destination.

When I load the package into BIDS it takes 125 MB of memory and then everything is slow, the properties panel slides in slowly and exists slowly. The object is the packages are not painted properly. to make changes and run takes lot of time.

Am I doing anything wrong here? Why is it consuming so much of memory?

Thanks in advance for your help.

Regards,

$wapnil

View Replies !
Running Out Of Disk Space During SSIS Package Execution
Hi all,

I'm running out of disk space when running SSIS package. Is there any way to select where temp files are saved during package execution ?

View Replies !
SQL Server Agent Fails SSIS Package Execution At The End.
I have an SSIS ETL Package that runs perfectly in debugger.
 
It is saved to the local SQL Server using "rely on server security".
 
The SQL Server Agent job runs at night and the job fails right at the last step.  It is actually loading the data, because I write a record with row counts to an audit table, and they are successfully incrementing.
 
The real issue to me is that it is failing randomly, sometimes it will run 7 times then fail once, others it will go 2 or 3 days then fail.   The job runs at the same time every night, and takes within a minute or two variance.
 
I've looked at the logs, and done a trace, and I can't seem to find anything that would cause the failure.  The closest thing to an error is a join parameter note in the trace that's on tthe MSDB database.

Not a lot to work with, I know... but does anybody have any advice for me?  Thank you in advance!

View Replies !
SSIS Execute DTS 2000 Package Task: Execution Was Canceled By User.
 

Hi,

 

I am facing a problem when I try to Execute a DTS Package in SSIS by calling it inside a  "Execute DTS 2000 Package Task".

 

Error: 0x0 at Execute DTS 2000 Package Task: System.Runtime.InteropServices.COMException (0x80040427): Execution was canceled by user.

at DTS.PackageClass.Execute()

at Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask.ExecuteThread()

Task failed: Execute DTS 2000 Package Task

 

I have also successfully executed some of the DTS Package inside the "Execute DTS 2000 Package Task" without making a single change in the SSIS properties. But  some other package failed with the above error. Now I am unable to sort out this problem that why some packges are working  fine by this method and others are failing.

 

Can anyone please help me to resolve this issue.

 

Many Thanks in Advance.

View Replies !
SSIS Package Execution Completes Without Giving Any Success Or Failure Message
Hi,

We are using SSIS to load some 100k records from flat file to Oracle Destination. We are using Oracle 10g client.
But during the execution after some 5hrs or 6hr with 900k records upload we are getting the message Package execution completed. In the Execution results there is no message related to success or failure and the tasks in the Data Flow where yellow in color. What might be the problem? Any information regarding this case will be helpful for us.

Regards,
Roopa.

View Replies !
SSIS Package Execution Error: Retrieving The COM Class Factory For Component With CLSID {E44847F1-FD8C-4251-B5DA-B04BB22E236E}
 

Hello Chaps,

I am using vb.net 2005 and SQL Server 2005.. I have deployed some of my packages on the server.. Now if i am trying execute packages with SSIS object model from any of developement PC they are executing perfectly. But as soon as i am trying to execute them from client pc - where no any component except (.netframwork) -- i am getting the follwoing error:
 

Retrieving the COM class factory for component with CLSID {E44847F1-FD8C-4251-B5DA-B04BB22E236E}
 
Can any one help me out..? i have gone through some of the article stating that SQL client componet must be installed on the computer from where app runs...
 
Is there any other solution to use SSIS object model...
 
Let me know if any one you have...!
 
Thanks,
Tarang Pandya

View Replies !
Ssis Job Fails With &&"package Execution Failed&&"
Hi,

I have a dts package migrated from sql server 2000 to sql server 2005 clustered server using migration wizard without any problem.

I have created a new job on sql server 2005 and one of the steps involves executing the SSIS package.  It keeps failing with the error message "package execution failed". I have logged in here as a domain administrator (as also a local administrator).

I followed Article ID: 918760 but did not help.

I need this to be resolved asap.

Any quick help, much appreciated.

Thx

Murali

 

 

View Replies !
Execution Of Child Package From Parent Package In Sql Server 2005 Integration Services
Hi,

I created a package which passes some infornmations( through parameters) to its child package.

I need to do some processing in parent package based on execution status of child package.i.e.

 if child fails then some operation and if child succeeds then other operation.

To determine the status of execution of child package I am using two differnt constraint ..one constraint is having value "Success" and other having value "Failure".

My problem is that when child packge is executed successfully the constraint with value = "Success" works properly but when child fails the constraint with value "Failure" does not work.

 -Prashant

View Replies !
Job Running SSIS Package Keeps Failing But The SSIS Package By Itself Runs Perfectly Fine
Hey, I've a few jobs which call SSIS packages. If I run the SSIS package, it runs fine but if I try to run the job which calls this package, it fails. Can someone help me troubleshoot this issue? None of my jobs that call an SSIS package work. All of them fail.

Thank you

Tej

View Replies !
DTS Package Execution
Is there a method to either:
A) Kick of a DTS package directly from a stored procedure without shelling out to the DTSRun facility.
B) Kick off a scheduled job containing a DTS task from a stored procedure?

What's the best method?

View Replies !
VB And DTS Package Execution
Hi,
I have a package that moves all the objects from the local SQL server to another server in the domain. When I try to SaveToSQLServer the package is created(when I run it manually everything works) but if I try to execute the package nothing happens. I get no errors of messages. I am using SQL7.0/NT2000/VB6.
Here is a sample of the code that I used:

goPackage.SaveToSQLServer "(local)", "sa", ""
goPackage.Execute

Thanks, Brian

View Replies !
DTS Package Execution - When Is It Done?
I wrote a stored procedure that calls a DTS package that imports a file into a SQL Server table, then executes some commands on that table. How can I tell that the DTS package has completed, so that I can continue with the next command? Here is my code:

-- Run the DTS package
EXEC @Result = msdb..sp_start_job @job_name = 'MyJob'
WAITFOR DELAY '00:00:02'

-- Call the table that the package created
SELECT * FROM <imported_table> WHERE ...

I had to insert a WAITFOR statement to make this work. Any other suggestions as to how to know when to continue?

Thank you.

View Replies !
DTS Package Execution
I have already created package which loads a text file to database.I wanted to execute that package based on the availability of the file using Visual Basic,Perl or VBSCRIPT whichever is easier.Please advise.Thanks

View Replies !
DTS Package Execution
Hello!
Is it possible to execute individual tasks in a dts package?

Thanks in advance?
Ravi.

View Replies !
Package Execution ...
Hi Friends,


I need help from you.
I am working on SSIS packages for ETL purpose.
The version of SQL Server i am using is SQL Server 2005.

In Brief , the working of current ETL is as follows.

In ODS database i have 2 tables i.e Table_A & Table_B which gets loaded from another 2 staging tables A & B.
And using this 2 tables data will be loaded into a target table i.e Trg_A.

The ETL packages are executed by stored procedures by creating a job within the stored procedure.

The loading of the trg table is little tricky.
Before that loading of Table_A is implemented in a single SSIS package.
and loading of Table_B is been implemented in another SSIS package.

In the trg table there are two columns which will be getting updated as and when each table is loaded.
so for the first time if i run the package which is resposible for loading Table_A, it loads values into Table_A and once done it will updates (col1) in the target table.


Once after the complete of the execution of Package1.
Now i will kick off the second ssis package which loads the data into Table_B and updates the trg table's columns (col2).

Now the actual problem what i am facing is:

For loading Table_A and updating the col1 in Trg table i will be receving more than 5 excel file every month on weekly basis.
I cannot even gather all the files and run using a For-Loop counter.
So presently i am loading data excel file per week .

Similarly loading of table_B.

For a week if i am executing both the packages which loads the Table_A and updates the Trg(col1) and Table_B and updates Trg(col2), then i am getting a Deadlock Error and the entire ETL is getting messed up.


Now my requirement is , Eventhough the 2 packages are run in parallel , there could certain milli seconds time difference while start of the execution in Job Monitor.
I need to implement a Queing Mechanism which takes care of running the packages in a sequential manner rather than in parallel. i .e i need to ensure only one SSIS package is running in Job Monitor. Only after successful execution of either one the package, then only the second package should start its execution.

If we can implement such a queing mechanism , then my problem is solvedl.

I need some suggestions on this regard in implementing the Queing mechanism in a programatic approach using SQL Server Job Related MetaData Tables.
or else is there in server parameter or initialization parameters which can be set at Database level which suffice my requirement.

Any suggestions would be greatly appreciated.
Looking for sincere comments on this regards.



Thanks in advance.

View Replies !
Error While Executing SSIS Package From Other SSIS Package
Hi,

  In our project we have two SSIS package.

And there is a task (Execute SSIS package) in First package that calls the execution of second package.

I m continuously receiving an error "Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available."

As we are running first package by job, job runs successfully logging above error

The protection level of second package is set to "EncryptSensitiveWithUserKey"

Can anybody please suggest how to handle it?

View Replies !
DTS Package Execution Order
I have a package that has 12 data pump tasks all executing in parallel.

It is transferring raw data from an AS400 DW to a MSSQLSvr Staging area.

Each pump task on completion assigns values to a set of global variables, then having done this passes these as parameters to a sproc which inserts them into a table.

This seems to work for 4 or 5 of the pump tasks but, the rest of the rows in the table are all the same because the remaining pump tasks are all executing before the sprocs.

Is there a way to make sure that the entire set of job steps completes, before starting another job set of steps while still keeping them running in parallel.

I had wondered if there was a way to use the PumpComplete phase of each pump step to fire off the sproc, but can't see how you execute the step.

Any ideas would be much appreciated.

View Replies !
DTS, Finish Execution Of The Package
I want to finsih the execution of a DTS package from an ActiveX task. If a condition is ok, the package would continue as normal. If not, I want to finish the package without any error. Just without executing the next tasks. Do you have any idea?

Thanks

View Replies !
Automation Of DTS Package Execution
Hi,

I've been doing some research for possible ways of executing dts packages and it's been challenging cuz apparently there isn't a very straight-forward method of doing this using T-SQL.

So far I've seen 2 recommended methods aside from programmatically performing the task using C# or CLR assembly code. My prob is that we're running on a SQL 2000 platform right now.

I have managed to come up with a solution that seems to work for some DTS packages but not others and was wondering if anyone can provide any suggestions for script that can be implemented in a job to initiate execution.

Here is what I have managed to come up with:

CREATE PROCEDURE dts_execute
@server sysname -- Name of Server where DTS package resides
,@dts_name varchar(100) -- Name of DTS package
,@trusted_connection int -- Bit value indicating if the authenticated connection will be
-- trusted 1 = TRUE or 0 = FALSE
,@user_name varchar(100) = NULL -- (SQL Username) ONLY required if bit is set to 0
,@password varchar(100) = NULL -- (SQL Password) ONLY required if bit is set to 0
WITH RECOMPILE
AS
BEGIN
declare
@name varchar(75)
,@id nvarchar(250)
,@version_id nvarchar(250)
,@error_code int
,@cmd nvarchar(4000)
,@crlf char(2)

SET @crlf = char(13)
DECLARE DTSCURSOR CURSOR
FOR
select dts.name, dts.id, dts.versionid from msdb..sysdtspackages dts
join
(select name, id, max(createdate) [createdate]
from msdb..sysdtspackages
group by name, id) sys
on dts.id = sys.id
and dts.[createdate]=sys.[createdate]
where sys.name=@dts_name
OPEN DTSCURSOR
FETCH NEXT FROM DTSCURSOR
INTO
@name, @id, @version_id
WHILE(@@FETCH_STATUS=0)
BEGIN
FETCH NEXT FROM DTSCURSOR INTO @name, @id, @version_id
END
CLOSE DTSCURSOR
DEALLOCATE DTSCURSOR

IF @trusted_connection = 1
BEGIN
--PRINT 'Trusted Connection ' + @crlf
SET @cmd = '''DTSRUN /S"' + @server + '" ' +
'/E /N"' + @name + '" /G"' + @id + '" ' +
'/V"' + @version_id + '" /W"TRUE"' + ''''
--print @cmd
EXECUTE('master..xp_cmdshell ' + @cmd + '')
END
IF @trusted_connection = 0
BEGIN
--PRINT 'Authenticated Connection ' + @crlf
SET @cmd = '''DTSRUN /S"' + @server + '" ' +
'/U"' + @user_name + '" /P"' + @password + '" ' +
'/N"' + @name + '" /G"' + @id + '" ' +
'/V"' + @version_id + '" /W"TRUE"' + ''''
--print @cmd
EXECUTE('master..xp_cmdshell ' + @cmd + '')
END
SET @proc_error = @@ERROR
IF @proc_error <> 0
BEGIN
RAISERROR('The call to the procedure <msdb..dts_execute> failed.', 16, 1)
END
RETURN @proc_error
-- end procedure body
-- ==============================================
END

The procedure works great and I am willing to share with anyone who can use it. But for some reason it doesn't eem to work when the DTS package makes a call to another remote process. It doesn't fail but it doesn't seem to launch properly either.

Does anyone have some script or suggestion that could help me out??? I know I could right-click the DTS package and select to schedule it but that method doesn't work very efficiently since the GUID could change upon subsequent modification of the package.

I need something that is flexible and could be implemented into a scheduled job. My solution seems to work but not under the conditions when another remote call is being made from the DTS package.

I would really appreciate any helpful suggestions, comments or alternative methods to acheive this.

Thanks :)

View Replies !
Package Execution Condition
Hi,

I have 5 different packages out of which one needs to be run on a weekday basis. I wanted to have some kind of condition or varaiable to be set in a different Package which would determine which out of 5 packages needs to be Run.

 

I am  thinking  of setting a variable and then passing a value that would determine the particular package but then I dont know how set that  in "Execute Package Task".

 

Could somebody help me on this .

Cheers

 

View Replies !
Execution Package Task-SOS
hello to every body.. well i have a problem.. well i created a package the task of which is to update thedimensions and the fact tables from the tables of source.

i created a configuration file with all the parameters that are nedded (connections managers; parameters of packages).this config file will include all the paremeters need for the execution of other packages

In that package i call an other package (execution package task). this package normally will take the parameters of the parent package isn't it??(i put the parameters of this package to the config file of the parent package).

i must also note that for the second package called there is also a package...

i must also note that i have 2 DWHs (a and b) for testing.

the problem is that when i execute the parent package to DWH b , the sacond package called do not take the parameters of the parent package. instaed it looks to its XML configuration file(in a different location of the config file of the parent package) which contains the connection parameters to DWH a and it calls strored procedures from the DWH a (instead of calling at SP from DHW b).

any ideas??

thnx a LOT0  

 

View Replies !
SQL Server Package Execution
 

I tried to execute the package,which is importing the data from the Flat file(flat file from map network drive on other computer).But Packages are created and executed on Server.While i executing that package it shows error as "Package could not be found.".

Please help me ASAP.

 

Thanks in advance

 

 

 

View Replies !
Execution Of Package Failed
I am trying to design package which would copy all tables and stored procedures from one server to another. It used to be simple task in SQL 2000, there was wizard. However the new wizard does not work...

I wrote SSIS package, but when I execute I get the following error: "Can not apply value null to property Login..."

Any idea? It seems to me that this new SQl2005 is not that simple to use like 2000. 2000 was a great product. I am considering to rollback to 2000. Very frustrated with the new one... 

 

 

 

 

View Replies !
Execution Of DTS Package After Scheduling.
Hi All,

I have a problem in getting the info about the execution of a DTS Package.

I have a SQL-2000 Client installation on my Desktop to connect to SQL-2000 Server Database system to do all of my work. i had a DTS package stored in my SQL Server2000 Local Packages.  Now i have to schedule the DTS Package from my Desktop. And the DTS package is processing some files from a shared network folder. when i used to run the DTS package manually from my desktop my desktop login have access to that shared folder so there is no problem to run the package.

suppose i scheduled the DTS to execute on daily basis at 10:00 AM. Now my doubt is wher the DTS will be executed after scheduling, which starts DTS execution and is it required my Desktop to be up daily at 10:00 AM, and how the network shared folder is going to be accessed by the DTS, means where to specify the authentication to the shared folder.

somebudy plz help me out.

Thanks in advance.

View Replies !
Stop The Package Execution
Hello all

I want to cause the package to fail in DataFlow. I wanted use the script component for this purpose.

How I can do it?

Thanks

View Replies !
Variables / Package Execution
 

I have 10 or so packages with package scope variables.   I would like to create a package that not only runs all the packages but also sets the variables within the packages being executed.

A) Whats the best way to run all the packages from one (package??)?

B) Whats the best way to set the variables in the child packages, without having to change them manually everytime I run it.

Thanks,

Mardo

 

View Replies !
Package Execution Failed
Hi everyone,
 
I just deployed my first interface and below is the error message
 
failure".  An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E4D  Description: "TCP Provider: An existing connection was forcibly closed by the remote host.  ".  An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E4D  Description: "Login failed for user 'EUROPExxx123$'.".  End Error  Error: 2008-05-09 11:01:13.00     Code: 0xC020801C     Source: Load New Data Into TransDat...  The package execution fa...  The step failed.
 
The interface is just to copy the data from 1 database to another based on a date. I suspect that i could have missed a step during the deployment, can someone tell me if the error is caused me forgetting to configure something during the step up of the job or is it network related
 
Regards
Ash

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved