Running Local Package

Jan 7, 2003

Is there a way to run a local package from a stored procedure?

Thanks,
Ken Nicholson

View 2 Replies


ADVERTISEMENT

Several Different Errors When Creating And Running SSIS Package. Package Runs Successfuly Sometimes.

May 2, 2008

Hi All,



I am in the process of moving from a 32-bit SQL Server 2005 Enterprise (9.0.3054) to a 64-bit SQL Server 2005 Enterprise (9.0.3054 with 4 CPUs and 8GB of memory on Win 2003 SP2) and the process has been very frustrating to say the least. I am having a problem with packages that I created on my 64-bit SQL Server. I am importing a few tables from the 32-SQL Server into the 64-bit SQL Server using the Task --> Import to create the package.



Sometimes when I am creating a package I get the following error in a message box:



SQL Server Import and Export Wizard

The SSIS Runtime object could not be created. Verify that DTS.dll is available and registered. The wizard cannot continue and it will terminate.

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (System.Windows.Forms)





Other times when I run a package that has run successfully before I get the following error:



Faulting application dtexecui.exe, version 9.0.3042.0, stamp 45cd726d, faulting module unknown, version 0.0.0.0, stamp 00000000, debug? 0, fault address 0x025d23f0.





Other times I get this error message:



.NET Runtime version 2.0.50727.1433 - Fatal Execution Engine Error (79FFEE24) (80131506)





And still other times



The package appears to hang when running. By this I mean that the Package Execution Progress shows progress up to a point then it just stops. (The package takes about 17 seconds to run normally) CPU usage is at 1% and the package cannot be stopped.





I have deleted and re-created the package several times and I have also re-installed the service pack on the SQL Server (9.0.3054) but that did not help.





Does anyone have any other suggestions to try?





Thanks.



View 4 Replies View Related

Problem When Running A SSIS Master-package-child Package On Non Default Sql-server Instance

Dec 6, 2007

Hi there

We have a SSIS run which runs as follows


The master package has a configuration file, specifying the connect strings
The master package passes these connect-strings to the child packages in a variable
Both master package and child packages have connection managers, setup to use localhost. This is done deliberately to be able to test the packages on individual development pc€™s.
We do not want to change anything inside the packages when deploying to test, and from test to production. All differences will be in the config files (which are pretty fixed, they very seldom change). That way we can be sure that we can deploy to production without any changes at all.

The package is run from the file system, through a job-schedule.

We experience the following when running on a not default sql-server instance (called dkms5253uedw)

Case 1:
The master package starts by executing three sql-scripts (drop foreign key€™s, truncate tables, create foreign key€™s). This works fine.

The master package then executes the first child package. We then in the sysdtslog get:

Error - €œcannot connect to database xxx€?
Info - €œpackage is preparing to get connection string from parent €¦€?

The child package then executes OK, does all it€™s work, and finish. Because there has been an error, the master package then stops with an error.

Case 2:
When we run exactly the same, but with the connection strings in the config file pointing to the default instance (dkms5253), the everything works fine.

Case 3:
When we run exactly the same, again against the dkms5253uedw instance, but now with the exact same databases defined in the default instance, it also works perfect.

Case 4:
When we then stop the sql-server on the default instance, the package faults again, this time with


Error - €œtimeout when connect to database xxx€?
Info - €œpackage is preparing to get connection string from parent €¦€?

And the continues as in the first case

From all this we conclude, that the child package tries to connect to the database before it knows the connection string it gets passed in the variable from the master package. It therefore tries to connect to the default instance, and this only works if the default instance is running and has the same databases defined. As far as we can see, the child package does no work against the default instance (no logging etc.).

We have tried delayed validation in the packages and in the connection managers, but with the same results (error).

So we are desperately hoping that someone can help us solve this problem.


Thanx,
/Nils M - Copenhagen

View 3 Replies View Related

Run Dts Package From Visual Studio(user Will Trigger The Running Of Dts Package)

Nov 5, 2007



Hi all,
I am creating a dts package to export files from one database to another database.
I tried to search for ways to execute the files and found out that i need to add
reference to Microsoft.Sql.managedDts. However, I cannot find this reference from
my reference. Do i have other alternatives to run this file?

View 8 Replies View Related

Local Host Not Running Database Connections

May 6, 2008

hi my local host cannot open the connection to my database, whilst testing with vwd seems to be able to do this? other server side functions work (response.write("hello world"))
in my iis the version of .net it says its running reads: 2.0.50727, though when i go to add / remove programmes i have 3.5 there? maybe its nothing to do with .net versions?
thanks in advance for your help
 pete

View 5 Replies View Related

Local SQL Service Not Starting But SQL Server Is Running?

Jul 23, 2005

Hello there,This is a bit of strange one.My local version of SQL Server fails to start when I boot yet if Istart Enterprise Manager its started and working fine. ISQL or QueryAnalyzer is also not working.If I try and register the server by another SQL Server is not there. Methinks that the named pipes might be a bit broken but would appreciateany advise from people.ThanksGinters

View 2 Replies View Related

Failed To Acquire Connection When Running A Package From Within Another Package.

Apr 26, 2006

I am receiving an error on my master package that executes a number of other packages. The individual packages work fine when executed by themselves. However, I am getting the following error when I attempt to execute it from another package:

Error: Failed to acquire connection "conneciton". Connection may not be configured correctly or you may not have the right permissions on this connection.

Thanks in advance for your help.



View 1 Replies View Related

Avoid Running SQL Server Agent As The Local System

Apr 18, 2008

Hi folks!!

I am new to installation of SQL Server 2005..I wanted to know while selecting Service Account Screen why Avoid running SQL Server Agent as the Local System account.????


T.I.A

View 2 Replies View Related

SQL Server 2000 Service Not Running In Local Machine

Jul 23, 2005

Hi all,After merged two partitions into one (C: and D: into one C:) byusing Partition Magic, I can't start SQL Server 2000 which waspreviously installed in both C:Program FilesMicrosoft SQL Server80and D:Program FilesMicrosoft SQL ServerMSSQLThe original files in D: (every thing in D: actually) are now copyedin C:Data folder.Other than re-install SQL Server in C:, is it possible to restoredata(files) from D:Data ?Mank thanks to any suggestions/hints.Kind Regards,Bob

View 3 Replies View Related

How To Copy Db From Test Server To Local Machine Running MSSQL2000 Per.

Jul 23, 2005

I am in a situation where I need to get a copy of test database that ison production server running MSSQL 2000 Standard to my local machinerunning MSSQL 2000 personel. I tried to use the copy wizard where itappears I get connected to the source server OK but when I try toindicate the destination server which is my local machine I get errorspoping up about cannot connect to (local) etc.I am NOT a DBA just a programmer trying to get a local test environmentup to be more productive.Lsumnler

View 2 Replies View Related

Dts Package (local) And Scheduling

May 23, 2001

hello

I have the following problem with a local dts package which I created with a domain adminuser (domainadmdba) and runs ms oledb for oracle to execute access for a oracle database. thereafter the data fills up into a sqlserver table, this runs as local package perfectly. if i place the package into the scheduler and run the dts-job with an another domain user (domainsrv_sql=service account) i get connecting problems. the service account (domainsrv_sql) has sysadmin right in sqlserver and local administrator right on the operating system. which right must the service account possess, so that he has the necessary right to execute this dts package?

single dump from the log file:

with admdba:

The execution of the following DTS Package succeeded:

Package Name: DTS__000000006
Package Description: Import CUSPERS from ZMA
Package ID: {E13C874F-4ABF-11D5-92A4-0008C70D8D6E}
Package Version: {768B2A40-4ECE-11D5-92A4-0008C70D8D6E}
Package Execution Lineage: {9FCF25E5-4ED1-11D5-92A4-0008C70D8D6E}
Executed On: xxxZS270
Executed By: ADMDBA
Execution Started: 22/05/2001 6:44:58 PM
Execution Completed: 22/05/2001 6:45:09 PM

Package Steps execution information:

Step 'Delete from Table [HELPDESK].[dbo].[cuspers] Step' succeeded
Step 'Copy Data from Results to [HELPDESK].[dbo].[cuspers] Step' succeeded

with srv_sql

The execution of the following DTS Package ?succeeded?:

Package Name: DTS__000000006
Package Description: Import CUSPERS from ZMA
Package ID: {E13C874F-4ABF-11D5-92A4-0008C70D8D6E}
Package Version: {768B2A40-4ECE-11D5-92A4-0008C70D8D6E}
Package Execution Lineage: {AF7B9D41-4ECF-11D5-92A4-0008C70D8D6E}
Executed On: xxxZS270
Executed By: SRV_SQL
Execution Started: 5/22/01 6:30:00 PM
Execution Completed: 5/22/01 6:30:00 PM

Package Steps execution information:

Step 'Delete from Table [HELPDESK].[dbo].[cuspers] Step' succeeded
Step 'Copy Data from Results to [HELPDESK].[dbo].[cuspers] Step' failed

Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Unspecified error
(Microsoft OLE DB Provider for Oracle (80004005): The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 (or greater) client software installation.

You will be unable to use this provider until these components have been installed.)
Step Error code: 80074005
Step Error Help File:sqldts.hlp
Step Error Help Context ID:1100

Thanks for any help !

Greets Indio

View 1 Replies View Related

DTS -- Local Package Or File?

Jan 25, 2001

I have a fairly large DTS package which processes a large amount of data and outputs it to a series of tables. Currently I am saving the package as a local package, but I want to save it as a file to make migrating to different servers easier for the people who will be moving it. My question is, Can I run the package as a file without saving it as a local package on the server? And if so, are there any good examples of how to do it out there?

View 1 Replies View Related

Saving DTS As Local Package

May 13, 2002

I'm getting errors from time to time saving DTS changes as local package. I'm using SQL 2000. I've got sysadmin role.

I know there were DTS package ownership bugs in SQL 7 - but I thought these had been cleaned up with the latest SP.

Any suggestions would be appreciated.

View 2 Replies View Related

Running A Package That Calls Another Package From

Jul 6, 2007

I am trying to run a SSIS package (called "Parent") that calls another package (called "Child"). The packages are stored in SQL Server (MSDB database) and are called from a console app by the code below:


Public Shared Function RunPackage(ByVal server As String, _
ByVal userName As String, _
ByVal password As String, _
ByVal packageName As String, _
ByVal packagePassword As String) As String

Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
Dim result As String = ""


app.PackagePassword = packagePassword
pkg = app.LoadFromSqlServer(packageName, server, userName, password, Nothing)
pkgResults = pkg.Execute()
result = pkgResults.ToString() & vbNewLine

For Each err As DtsError In pkg.Errors
result += "Task: " & err.Source & vbNewLine
result += ParseErrorMessage(err.Description) & vbNewLine
Next

Return result

End Function


If I just run the Child package with this code, then it works! But is I run the Parent package from the same code, then it fails with this error: "Error 0x80004002 while preparing to load the package. No such interface supported".

The only difference between the 2 packages is that the Parent calls the Child, and the Child calls nothing.

The Connection Manager in Parent used to connect to Child uses SQL Server Authentication and it needs to be that.

My question: From VB.NET, how do I run a SSIS package that calls another package?

View 1 Replies View Related

DTS Local Package Runs But Not Its Scheduled Job

May 11, 2000

I have a Local DTS Package that I created that runs fine. I have scheduled it to run daily but it errors out when run it from the agent. This is an excerpt of the error from the Job history.

Delete from Table [Intranet].[dbo].[Employees] Step, Error = -2147217887 (80040E21)

This Local DTS Package, deletes the records in the file and reimports the data from an AS400 file that is recreated for me daily.

The only thing that has occured to me so far is that perhaps the SQL Agent Service Account needs permission to delete the records. (I'm using NT Security).

Am I on the right track or do you think it's something else?

View 1 Replies View Related

Error When Trying To Schedule A Local DTS Package.

Mar 12, 2000

Hi all...

Error when trying to schedule a local DTS package.

Package Error message is...

Microsoft SQL-DMO (ODBC SQLState 42000]
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection.

Can anyone help please...

Thank you in advance

View 1 Replies View Related

How To Read The Content Of DTS Local Package?

Nov 8, 2004

I create a local package in DTS a few months ago. And set a schedule to run daily. Now i need to modify. How to read the content of DTS local package? i try to right click the package in job, and edit, but i didn't see the content. How can i see it and modify. Why mine can't be read? Thanks.

View 4 Replies View Related

How To Copy Database And Local Package?

May 16, 2007

Hi All,



I am new to sql server and the database concepts and just started learning. I want to copy a database and local package from a old sql server to a new server. can anybody guide me with the steps? I am very new to this field so if you could give me detailed steps i would very much appreciate it.



thanks in advance,

View 4 Replies View Related

Job Running SSIS Package Keeps Failing But The SSIS Package By Itself Runs Perfectly Fine

Aug 30, 2006

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 7 Replies View Related

Printing Source Code From A Local Package

Sep 20, 2000

Is there a way to print the source code from the local package. I know you can go in the source and cut and paste it into a word document. I was wondering if there was a way to do it when you are in designing the package so that it would print all the source codes of SQL statments/queries.

View 1 Replies View Related

Schedule Local Package To Perform FTP And DB Restore

Jul 20, 2005

Hi,Did anyone successfully set up a local package to first ftp a db.bakand second perform an automated db restore?I need to perform an automated task, which ftp nightly backup file toanother server and then restore onto a database and leave the databasein read-only mode for additional transaction logs restore during theday.Can someone help and provide the procedures on how to do that?Thanks in advance.

View 1 Replies View Related

How Can I Run A SSIS Package With Using A Local Windows Account ?

Mar 23, 2007

Deal All:

I have got a strange problem on runing SSIS package, please help me.

The package contains a Script Task which function is downloading files from a SFTP server with using psftp command line application. It will run successfully with using dtutil.exe and as a job with using a ssis execute proxy(domian account as credential), but fail runing the package as a job with using a ssis execute proxy(local windows account as credential, although has Administrator permission).

It seems a permission problem, but I try a lot and can't solve it.

Would you kind give me some suggestion ?

Thanks a lot.

Tomorrow

View 4 Replies View Related

Spurious Errors With Package Execution On Local Machine

Jan 5, 2007

I am having strange errors with a package when running locally that has not been an issue before.

The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below.

Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange.

App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below.

Below is the error message, can someone help me decrypt it?

Many thanks,

Rick

Error: 0xC0202009 at DFT_LoadProcessUnits, OLE_SRC_VLD_PROC_TDV_RESULT [1]: An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

".

Error: 0xC0047038 at DFT_LoadProcessUnits, DTS.Pipeline: The PrimeOutput method on component "OLE_SRC_VLD_PROC_TDV_RESULT" (1) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "SourceThread3" has exited with error code 0xC0047038.

Error: 0xC0202009 at DFT_LoadProcessUnits, OLE_SRC_DimEntities [199]: An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 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: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 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: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: The specified network name is no longer available.

".

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread1" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047038 at DFT_LoadProcessUnits, DTS.Pipeline: The PrimeOutput method on component "OLE_SRC_DimEntities" (199) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread3" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread4" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread1" has exited with error code 0xC0047039.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0047039.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "SourceThread0" has exited with error code 0xC0047038.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread3" has exited with error code 0xC0047039.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread4" has exited with error code 0xC0047039.

Information: 0x40043008 at DFT_LoadProcessUnits, DTS.Pipeline: Post Execute phase is beginning.

Information: 0x402090DF at DFT_LoadProcessUnits, OLE_DST_FactResults [2076]: The final commit for the data insertion has started.

Information: 0x402090E0 at DFT_LoadProcessUnits, OLE_DST_FactResults [2076]: The final commit for the data insertion has ended.

Information: 0x40043009 at DFT_LoadProcessUnits, DTS.Pipeline: Cleanup phase is beginning.

Information: 0x4004300B at DFT_LoadProcessUnits, DTS.Pipeline: "component "OLE_DST_FactResults" (2076)" wrote 0 rows.

Task failed: DFT_LoadProcessUnits

View 16 Replies View Related

SQL Server 2012 :: Local SSIS Package Run And Export Data Except In Job

Jun 23, 2014

Using server 2012 on local machine, I created an SSIS package that will execute in integrated services and Visual Studio solution but will not work when creating a job. Other solutions work well except when exporting data. The program pulls data from query and exports into .csv file. The messages I get are -

Data flow task 1:error:destination- Stage.csv failed the pre-execute phase and returned code 0xC020200E
and
Data flow task 1:error:Cannot open the datafile "pathStage.csv".

Version-
Microsoft SQL Server Management Studio11.0.3128.0
Microsoft Analysis Services Client Tools11.0.3128.0
Microsoft Data Access Components (MDAC)6.1.7601.17514
Microsoft MSXML3.0 6.0
Microsoft Internet Explorer9.11.9600.17041
Microsoft .NET Framework4.0.30319.18444
Operating System6.1.7601

View 1 Replies View Related

SQL 2012 :: How To Fetch Single File From Local Path Using SSIS Package

Nov 14, 2014

I have 15 Dealers files .With the Files name as follows

1. ''ACTEST00001_20141112_0408_INV.TXT''

2. ''ACTEST00002_20141112_0408_INV.TXT''

I will get these files through FTP on Daily basis with changes on date alone.

I will have 4 files for each dealers.like INV,SERVICE,SALES,APPOINTMENT.

SO i need to fetch a particular dealer with particular date.

I need to create this scenario in SSIS package. How to create this and what are all the Tasks i need to use to implement this process.

View 1 Replies View Related

Running A DTS Package From Vb.net

Sep 12, 2005

Can anyone point me to some sample code ord give me an example.  I'm trying to run a DTS package from my asp.net/vb.net application.  I don't need to pass it any variable, just need it to run.  I can't seem to find anything on the net for this. Thanks in advance, Ryan

View 7 Replies View Related

Running DTS Package

Nov 21, 2001

Hi
I have one DTS package looks for specific file in a directory to process the data into sql. I have schedule this package to run every 5 mins.
I would like to invoke the package when a file arrive at the folder instead up running it every 5 mins.
Thanks

View 1 Replies View Related

Is Package Running?

Oct 19, 2007

Hi Folks

I am calling SSIS package from my .net code. I want to know whether my package is still running or not. And if it is taking longer than a limit then execution of package should stop. I am executing package in different thread like this

DelegateExecute del = new DelegateExecute(pkg.Execute);
del.BeginInvoke(null, null);

As I explored, I learnt that RunningPackage class could help me in not only determining whether package is running butalso in stopping too. Unfortunately RunningPackage class is saying that there is no package running! Is Runningpackage works only with the packages running from MSDB?

Following is the code I am using.

public string LoadPackage(string path, long ThrashHold)
{
string pkgLocation;
Package pkg;
Application app;
//DTSExecResult pkgResults;
string str;

pkgLocation = path;
app = new Application();

pkg = app.LoadPackage(pkgLocation, null);

//pkgResults = pkg.Execute();
long startDT = DateTime.Now.Ticks/10000;

DelegateExecute del = new DelegateExecute(pkg.Execute);
del.BeginInvoke(null, null);

DealPackage();
while (pkg.ExecutionStatus != DTSExecStatus.Completed)
{
//str = "pkg.ExecutionStatus = " + pkg.ExecutionStatus.ToString();
//str = str + "pkg.StartTime = " + pkg.StartTime.ToString();
//str = str + "pkg.StopTime = " + pkg.StopTime.ToString();
//str = str + "pkg.ExecutionDuration = " + (DateTime.Now.Ticks / 10000 - startDT).ToString();
//Console.WriteLine("********************************");
//Console.WriteLine(str);
//Console.WriteLine("********************************");

if ((DateTime.Now.Ticks / 10000 - startDT) > ThrashHold)
{
Console.WriteLine("********************************");
Console.WriteLine("package should be stopped");
//Console.WriteLine(str);
Console.WriteLine("********************************");

break;
}
}

str = "pkg.ExecutionStatus = " + pkg.ExecutionStatus.ToString();
str= str+"pkg.StartTime = " + pkg.StartTime.ToString();
str= str+"pkg.StopTime = " + pkg.StopTime.ToString();
str = str + "pkg.ExecutionDuration = " + pkg.ExecutionDuration.ToString();

DBOperations dbr=new DBOperations(ServerName,"PEPE_SSIS","sa","sa@123");
dbr.EnterPackageDetail(path,pkg.ExecutionStatus.ToString(),pkg.StartTime.ToString(),pkg.StopTime.ToString(),pkg.ExecutionDuration.ToString());

return str;
}

private void DealPackage()
{
RunningPackages pkgs = app.GetRunningPackages(se);

int pkgsRunning = pkgs.Count;
Console.WriteLine("Packages before stop: " + pkgsRunning);

foreach (RunningPackage p in pkgs)
{
Console.WriteLine("InstanceID: " + p.InstanceID);
Console.WriteLine("PackageDescription: " + p.PackageDescription);
Console.WriteLine("PackageID: " + p.PackageID);
Console.WriteLine("PackageName: " + p.PackageName);
Console.WriteLine("UserName: " + p.UserName);
}

pkgs = app.GetRunningPackages("yourserver");
foreach (RunningPackage package in pkgs)
{
package.Stop();
}

pkgsRunning = app.GetRunningPackages("yourserver").Count;
Console.WriteLine("Packages after stop " + pkgsRunning);

}

View 1 Replies View Related

Running The Package Through C# UI

Jul 27, 2006



one more guidance needed with regard to the Quotation marks

path = @"D:SSISProjectIntegration Services Project1ArchiveTicket.dtsx";

jobCommand = new SqlCommand(@"xp_cmdshell 'dtexec /f "'path '" /Set package.Variables[User::ArchiveFileType].Properties[Value];""Excel""'", cconn);

How Do i set the path's value in c# the quotation marks are wrong again. cos i want to set value of path according to selection in the UI.

Select("deviceUniqueId = '" + deviceUniqueId + "'"); is an e.g of Doing in C# but when i implement it through text it does not recognize

Thanks

Jas

View 4 Replies View Related

Where Is The Package Running?

Jun 2, 2006

When I ran a package directly on the machine with sql 2005 installed it ran at a fine speed. But when I used Remote Desktop to access the same client and run the same package it was much slower.



1. I think that the package is running in the memorycpu of the local machine. Is this correct?

2. Is there any way for the remote client to run the package in the server's memorycpu?





TIA,

barkingdog

View 13 Replies View Related

Running An Macro From DTS Package

May 21, 2002

Hi all,
I am trying to run a Excel macro from a DTS package.I've created the macro and Batch file to run a macro, and i am executing a batch file from DTS package.I am able to run a macro when i am executing a DTS package manually.but its not working when i schedule the process. any solutions?
its not the security problem also.I've checked it.

View 1 Replies View Related

Problems With Running A DTS Package As A Job

Aug 25, 2000

I have a DTS package hat copies several tables to another Reporting database.
When executing it as a apachkage, it works fine. However, when I try to schedule it as a job, it fails. I tried this with another package and it didn't work also. Any ideas?

Thanks,

Steve

View 1 Replies View Related

Running A Job On DTS Package That Has Different Owner

Mar 15, 2004

I have a DTS package that is owned by Joe.

A job that is owned by Domain Admin runs Joe's job every night.

Joe has left the company and his account will be deleted.

2 Questions:

1. Will the job still be able to run the DTS package ?

2. If I need to change the owner of Joe's DTS package, how do I do that ?..just a simple 'Save as' ?..and if so, I will not be able to save the DTS package with the same name...and thereby the job will not recognize the new DTS package name...will I have to re-shedule the new DTS package ?

thank you

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved