473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

DTS-- Progress Count in log File is zero

Hi,



I am running the ‘Data Tranformation Services’ using DTS dll in C#. Issue is the log file generated has progress count always zero, even if task executes successfully. Where as if run through command prompt, the progress count is reflected.

public DataSet ETLPreReporting(string repFlag,
string pkgPaths,
string logFilePath,
string errorFilePath,
string userID,
string runID,
string dbName,
string catalogName,
string sqlLogin,
string sqlLoginPwd)
{
try
{
ExecutePKGDataAccess daPKG = new ExecutePKGDataAccess();
DataSet dsData;
object pVarPersistStgOfHost = null;

//Instantiating the DTS package object
DTS.Package dtsETL2;
dtsETL2 = new DTS.Package();

//Unload the package
dtsETL2.UnInitialize();
dtsETL2.LoadFromStorageFile(pkgPaths, "", "", "", "", ref pVarPersistStgOfHost);

//Adding the user id
dtsETL2.GlobalVariables.Remove("G_UserID");
dtsETL2.GlobalVariables.AddGlobalVariable("G_UserI D", userID);

//Adding the error file path
dtsETL2.GlobalVariables.Remove("G_ExpFile");
dtsETL2.GlobalVariables.AddGlobalVariable("G_ExpFi le", errorFilePath);

//Adding the Log file path
dtsETL2.GlobalVariables.Remove("G_LogFile");
dtsETL2.GlobalVariables.AddGlobalVariable("G_LogFi le", logFilePath);

//Adding the report type flag
dtsETL2.GlobalVariables.Remove("G_Report");
dtsETL2.GlobalVariables.AddGlobalVariable("G_Repor t", repFlag);

//Adding the database server name
dtsETL2.GlobalVariables.Remove("G_Datasource");
dtsETL2.GlobalVariables.AddGlobalVariable("G_Datas ource", dbName);

//Adding the database catalog name
dtsETL2.GlobalVariables.Remove("G_Catalog");
dtsETL2.GlobalVariables.AddGlobalVariable("G_Catal og", catalogName);

//Adding the run id
dtsETL2.GlobalVariables.Remove("G_RunID");
dtsETL2.GlobalVariables.AddGlobalVariable("G_RunID ", runID);

//Adding the sql Login id
dtsETL2.GlobalVariables.Remove("G_Login");
dtsETL2.GlobalVariables.AddGlobalVariable("G_Login ", sqlLogin);

//Adding the sql login-id password
dtsETL2.GlobalVariables.Remove("G_Passwd");
dtsETL2.GlobalVariables.AddGlobalVariable("G_Passw d", Obfuscate(sqlLoginPwd));

//Executing the DTS package
dtsETL2.Execute();

//Unload the package
dtsETL2.UnInitialize();

//Get the ETL run status
dsData = daPKG.RunStatusForETL(userID, runID, dbName, catalogName);

return dsData;
}
catch (Exception exception)
{
throw;
}

}


Any help in the regard would be appreciated.

Regards,

Sakshi Jain
Dec 8 '06 #1
0 863

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Piedro | last post by:
Hi y'all I'm having some trouble with the following script I use in a dts-package. I use it to automatically import a dat-file of which the name changes every day. Today the name f.e. is...
2
by: PaulMac | last post by:
This seems so easy....change the join to show all records, but the zero records still do not show I want to join 2 tables....basically Customers and Orders....get the total number of orders for...
2
by: Peter Rilling | last post by:
Suppose that I want to get periodic status info when coping a file, how do I do this? For instance, if my program copies a large files, how can I be notified of the progress so that I can display...
2
by: Thomas R. Hummel | last post by:
Hello, I'm not getting any response to this on the SQLDTS newsgroup, so I thought that I would try here: I just ran into this problem and I can't find any other mention of it through Google....
9
by: LimaCharlie | last post by:
Good Day to all, Hope you could help me w/ my project. Im creating a DTS Package. The source data will be coming from an excel file going to my SQL table. The DTS package is scheduled to execute...
3
by: Haleigh | last post by:
I just started a few days ago, so I'm very new to this. I'm trying to update a gridview using a store procedure. When I am in the update subroutine, newvalues and oldvalues are empty, plus count is...
0
by: Tommy Grav | last post by:
I have a program that does a lot of iterations and would like to follow its progress by having it print out the current iteration number as it progresses. How do I do this so that it appears like...
1
by: darrel | last post by:
I have a web form where people can/will be attaching rather large files via a file upload field. I'd like to provide a progress bar and the easiest way to accomplish that seems to be to...
1
by: padmaneha | last post by:
Count should be displayed as zero if there is are no recipes posted select f.dishes,f.contentid,f.titleurl,count(f.dishes) as Recipescount from food f inner join foodmemberpref fmp on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.