 |
|
 |
I have created an empty C# project, and have added the ExecuteSSIS.cs and ExamplePackage.dtsx to the project. The project builds without a problem, but when I attempt to double-click on the ExamplePackage.dtsx, I receive the following error,
Error loading ExamplePackage.dtsx: Failed to decrypt protected XML node "DTS:Password" with error 0x800900B "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.
Do you have any suggestions?
TIA,
Roger
|
|
|
|
 |
|
 |
hi...
check out the below link for getting some tips over faster extraction and loading on SSIS.
http://www.sqllion.com/
You will know me better sooner...
|
|
|
|
 |
|
 |
Am new to SSIS.I want insert Text file data to Sql database programatically.can any one help ???
|
|
|
|
 |
|
 |
Code doesn't work due to multiple reasons
|
|
|
|
 |
|
 |
The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Login timeout expired). The SQL statement that was issued has failed.
Currently I'm local administrator on remote machine, also used Impersonation, nothing helps.
On other hand, it runs on my local machine, and also on standing nearby my colleague's machine (I have no rights on his machine, just using Impersonation.)
//Sample code: using tcp protocol. Also Named pipes was tryed and the same success on local machines and error on remote server(no fire wall between.)
pkgIn = oApplication.LoadFromSqlServer("\\" + PackageName, "tcp:" + SqlServerIP, strServerUserName, strServerUserPassword, null);
pkgResult = pkgIn.Execute();
dtsErrors = pkgIn.Errors;
Can anyone give a clue what the error is?
Thanx..
|
|
|
|
 |
|
 |
I would like to know if it is possible to run this application on a PC that does not have SQL Management Console installed? If so, how can I accomplish this? Thanks
|
|
|
|
 |
|
 |
Hello,
First of all thanks for the wonderful article. I would like to know if this code can be used to execute SSIS package which resides on a different server from where this code is running. Since we have our web servers and SQL servers on different boxes.
would there be any problem with it ?
Thanks,
Ash
|
|
|
|
 |
|
 |
Hi,
Found this article very much helpful. Is there any way we can control the execution of an SSIS package i.e. initiate an SSIS package execution, should be able to stop an running package.
Thanks,
Sanmukh.
|
|
|
|
 |
|
 |
I've written some little code which runs SSIS package from C#, is there a way to catch errors in some way and show them to user ?
Thanx.
|
|
|
|
 |
|
 |
Try using something like this...
//code from example
...
Package package2 = app.LoadFromSqlServer(
"ExamplePackage","server_name", "sa", "your_password", null);
package2.ImportConfigurationFile("c:\\ExamplePackage.dtsConfig");
Variables vars2 = package2.Variables;
vars2["MyVariable"].Value = "value from c# again";
DTSExecResult result2 = package2.Execute();
if (result2 == DTSExecResult.Success || result2 == DTSExecResult.Completion)
{
//some Success message here
}
else if (result2 == DTSExecResult.Failure)
{
//some error message + handling here
}
else if (result2 == DTSExecResult.Canceled)
{
//some other message + handling here
}
It think it simple enough.
|
|
|
|
 |
|
 |
And also its a good itea to run the whole code in a try {} catch like :
try
{
// the code from the sample here
}
catch (Exception ex)
{
Console.WriteLine("Package Error: " + ex.Message);
}
For instance
|
|
|
|
 |
|
 |
this code is good, a dont have errors when a execute this program, but it´s dont trasfer data, the project build succeeded, the message in consola is failure.
please give a solution.
P.D. the package was save in the integration service
|
|
|
|
 |
|
 |
I can run DTS packages from sql server 2000 from VB.net 2002, but I am having trouble running SSIS packages from vb.net 2005.
|
|
|
|
 |
|
 |
If my data source is excel,what can I do?How to give the path to the package?Who can help me,Thank you very much!
|
|
|
|
 |
|
 |
Simple and to the point!
Thx.
|
|
|
|
 |
|
 |
hi all i am working on execution SSIS pacakage from C# the following code i am using but not able to perform the execution
Application app = new Application();
Package package = app.LoadPackage("d:\\Main.dtsx", null);
package.ImportConfigurationFile("d:\\Main.dtsConfig");
try
{
DTSExecResult result1 = package.Execute();
}
but after completion of the execution it is not giving the desired result ... like result1 is saying failure..
can anybody help out me here..
Thanks in adavance..
vikas da
|
|
|
|
 |
|
 |
maybe your config file has something error?
and did you running the dtsx file successed in the vs2005?
try to test again pls
this is James.
thanks~
|
|
|
|
 |
|
 |
Hi, My Requirement is given below please solve my problem if u can: Requirement is to create a table structure called customer books: 1. Customer-Books has the following columns: a. BookName b. CustomerName c. Price 2. Populate the table with random data. 3. Create a BI Model using SQL Server 2005 4. Choose an algorithm to process the BI Model. 5. Have a page with a Book text box and a Submit button. 6. When the submit button is clicked – the page should display a message – people who bought this book also bought <names of other book>(intelligent search page reflecting the taste of the reader,just like Amazon.com) Please solve this problem for me.............regards Thanx & Regards
|
|
|
|
 |
|
 |
Hi...
I have found examples of how to run an SSIS package from C#, but they all use SQL Server Authentication. Is it possible to do this using Windows Authentication?
TIA
Alister
|
|
|
|
 |
|
 |
I have a ssis package that transfer data from a flat file to a database.
I tryied to executing ssis package in C#.
but the result is always failure and there are no data in database.
would you like to point the reason?
|
|
|
|
 |
|
 |
Yo tenia el mismo problema lo unico que pude hacer fue boton derecho en el paquete y que registre en Log Events y lo direccione a los eventos de Windows ahi se registra todo lo que paso y porque el error.
espero te sirva y si consigues otra forma avisame por favor.
Hola a todos
|
|
|
|
 |
|
 |
Your solution to Import a configuration file works great. Does anyone know if there is a way to import configuraitons that are of type DTSConfigurationType.SqlServer. My configurations are stored in SQL Server, but I cannot find a way to programmatically load them... Is there an equivalent of ImportConfigurationFile for SQLServer configurations...
|
|
|
|
 |
|
 |
Hi
I am working in an application that should execute SSIS packages, and it works me well when I execute it in a pc with SQL Server installed, but when I run in another pc that doesn't have it, gives me error of COM when it tries to create the instance of the application. Is there a way of avoid this?
Regards
charlie
|
|
|
|
 |
|
 |
Charlie, you need to run on a machine that has SQL Server installed because only these machines have the required Microsoft.SQLServer.ManagedDTS.dll installed on them.
|
|
|
|
 |
|
 |
Hello,
Executing a package in runtime from .NET Code really helps a lot.
But, for example in situations when you want to call a long running package from an ASP.NET page
there is a major problem. You have to wait the package execution to complete for a page post-back!
Is there any way to handle this? I mean, you will start the package execution from a web page and forget about it. So the user will not have to wait for a post-back
Can we start a job from ASP.NET that executes that package in runtime? Would it be helpful?
Any ideas? Any help would be great?
Fatih Sahin
|
|
|
|
 |