473,398 Members | 2,088 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,398 software developers and data experts.

Execute DTS package from asp.net

How can I execute a DTS package from an asp.net page?

I found the code below online, and altough it throws no errors, it doesnt
execute the dts package either?

What am i missing?

Package2Class package = new Package2Class();
object pVarPersistStgOfHost = null;

this.iptFile.PostedFile.SaveAs("C://temp//test.xls");

package.LoadFromSQLServer(
"SERVER",
"sa",
null,
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default,
null,
null,
null,
"dtsTest",
ref pVarPersistStgOfHost);

package.Execute();
package.UnInitialize();

System.Runtime.InteropServices.Marshal.ReleaseComO bject(package);
package = null;
thanks

Nov 17 '05 #1
0 1403

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rich Tasker | last post by:
My goal is to execute a DTS package that calls multiple child DTS packages from a C# (2003) app and display the progress of the entire process to the user. I have followed the model defined in...
10
by: bdwgarth | last post by:
I have created a functioning DTS package inside Enterprise Manager and now I want to be able to execute it outside of EM. The package imports data from an SQL dbase to a Visual FoxPro dbase. I...
0
by: Peter Afonin | last post by:
Hello: I've got another problem executing DTS package from ASP.Net. I use this code: Dim oPkg As DTS.Package oPkg = CreateObject("DTS.Package") oPkg.LoadFromSQLServer("WIN2000", "UID",...
1
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used...
3
by: Peter Afonin | last post by:
Hello, Our SQL server used to run under System account, and I had no problems executing DTS packages from the ASP.NET: Dim oPkg As DTS.Package oPkg = CreateObject("DTS.Package")...
2
by: Ray5531 | last post by:
Hello, I'm calling a DTS package from my asp.net application.Apparently because of permission issue I canot run the package within the sql server ,because when I set it to call a package from my...
1
by: rAinDeEr | last post by:
Hi, I have started using DB2 UDB ESE v8.2 in Linux recently. I have seen a lot of articles on packages, prepare statement, bind and execute statement. I havent got a clear idea. I have...
6
by: amoldiego | last post by:
Dear all, 1) I have created package ref test for declaring ref cursor as shown ..... create or replace package ref_test as type empty is ref cursor; end; 2)
2
by: pvong | last post by:
I'm new to SSIS. Can someone point me in the right direction on how to execute an SSIS package from a button OnClick? With DTS in SQL2000, I just created a job that ran the DTS package and then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.