473,668 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

call, run or execute a DTS package from an APS (aspx) page?

how do i
call, run or execute a DTS package from an APS (aspx) page?

platform
win2k
iis (the one that comes with win2k)
sql server 2000 - with a test dts package ready to be called
..NET framework 1.1 installed and working correctly
web matrix is being used to create the files.

would prefer some example code in VB.NET but anything which works would be
fine.

what libraries need to be referenced - how can i search for them?

and surely i don't have to carry out everything in the

cookbook at sqldev.net

kev
Nov 18 '05 #1
5 3026
kevin bailey wrote:
how do i
call, run or execute a DTS package from an APS (aspx) page?


that should be an ASP page - and this is using ASP.NET
Nov 18 '05 #2
Consider using a Process object to fire off dtsrun.exe. It is one of the
easiest ways to program the funcationality you desire once the package is
created (can be created in SQL Server designer and exported to the file sys).

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************

"kevin bailey" wrote:
how do i
call, run or execute a DTS package from an APS (aspx) page?

platform
win2k
iis (the one that comes with win2k)
sql server 2000 - with a test dts package ready to be called
..NET framework 1.1 installed and working correctly
web matrix is being used to create the files.

would prefer some example code in VB.NET but anything which works would be
fine.

what libraries need to be referenced - how can i search for them?

and surely i don't have to carry out everything in the

cookbook at sqldev.net

kev

Nov 18 '05 #3
Cowboy (Gregory A. Beamer) - MVP wrote:
Consider using a Process object to fire off dtsrun.exe. It is one of the
easiest ways to program the funcationality you desire once the package is
created (can be created in SQL Server designer and exported to the file
sys).


i did see that but have had huge problems in windows when trying to run
command line programs from ASP pages - very often meant that IIS crashed
and we never got to the bottom of it - project was dumped in the end.

also - we need to be able to pass parameters into the calling of the DTS
package - and dtsrun.exe does not seem to allow for parameters,

cheers - kev
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************

"kevin bailey" wrote:
how do i
call, run or execute a DTS package from an APS (aspx) page?

platform
win2k
iis (the one that comes with win2k)
sql server 2000 - with a test dts package ready to be called
..NET framework 1.1 installed and working correctly
web matrix is being used to create the files.

would prefer some example code in VB.NET but anything which works would
be fine.

what libraries need to be referenced - how can i search for them?

and surely i don't have to carry out everything in the

cookbook at sqldev.net

kev


Nov 18 '05 #4
There is a COM DTS object model that you can use

Jeff
"kevin bailey" <kb*****@freewa yprojects.com> wrote in message
news:cn******** ***********@new s.demon.co.uk.. .
Cowboy (Gregory A. Beamer) - MVP wrote:
Consider using a Process object to fire off dtsrun.exe. It is one of the
easiest ways to program the funcationality you desire once the package is created (can be created in SQL Server designer and exported to the file
sys).


i did see that but have had huge problems in windows when trying to run
command line programs from ASP pages - very often meant that IIS crashed
and we never got to the bottom of it - project was dumped in the end.

also - we need to be able to pass parameters into the calling of the DTS
package - and dtsrun.exe does not seem to allow for parameters,

cheers - kev
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************

"kevin bailey" wrote:
how do i
call, run or execute a DTS package from an APS (aspx) page?

platform
win2k
iis (the one that comes with win2k)
sql server 2000 - with a test dts package ready to be called
..NET framework 1.1 installed and working correctly
web matrix is being used to create the files.

would prefer some example code in VB.NET but anything which works would
be fine.

what libraries need to be referenced - how can i search for them?

and surely i don't have to carry out everything in the

cookbook at sqldev.net

kev

Nov 18 '05 #5
For one recent project, I actually tried this, but gave up and switched to
coding my own transformation using ADO.NET and a couple of data adapters.
This is one that could be parameterized pretty simply. It's not that messy
to do it with ADO.NET.

DTS gets easier in SQL Server 2005.

"Jeff Dillon" <je**@removeeme rgencyreporting .com> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
There is a COM DTS object model that you can use

Jeff
"kevin bailey" <kb*****@freewa yprojects.com> wrote in message
news:cn******** ***********@new s.demon.co.uk.. .
Cowboy (Gregory A. Beamer) - MVP wrote:
> Consider using a Process object to fire off dtsrun.exe. It is one of
> the
> easiest ways to program the funcationality you desire once the package is > created (can be created in SQL Server designer and exported to the file
> sys).
>
>


i did see that but have had huge problems in windows when trying to run
command line programs from ASP pages - very often meant that IIS crashed
and we never got to the bottom of it - project was dumped in the end.

also - we need to be able to pass parameters into the calling of the DTS
package - and dtsrun.exe does not seem to allow for parameters,

cheers - kev
> ---
>
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> *************** ************
> Think Outside the Box!
> *************** ************
>
> "kevin bailey" wrote:
>
>> how do i
>> call, run or execute a DTS package from an APS (aspx) page?
>>
>> platform
>> win2k
>> iis (the one that comes with win2k)
>> sql server 2000 - with a test dts package ready to be called
>> ..NET framework 1.1 installed and working correctly
>> web matrix is being used to create the files.
>>
>> would prefer some example code in VB.NET but anything which works
>> would
>> be fine.
>>
>> what libraries need to be referenced - how can i search for them?
>>
>> and surely i don't have to carry out everything in the
>>
>> cookbook at sqldev.net
>>
>> kev
>>


Nov 18 '05 #6

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

Similar topics

1
1363
by: mychevworld | last post by:
I'm pulling my hair out. After several attempts I got the sp_OAMethod to execute without error. Unfortunately the DTS package isn't executing. It also isn't returning any error. What could I be doing wrong? Any help would be appreciated. This is the EXEC @hr=sp_OACreate 'DTS.Package', @oPKG OUTPUT IF @hr<>0
0
1413
by: CodeRazor | last post by:
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;
3
16000
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I need to call an SSIS package from ASP.NET 2.0 web page. First I triy to call it directly from the asp.net page, as the following: Dim app As New Application Dim pack As Package = app.LoadPackage("C:\GetNorthwindEmployee.dtsx", Nothing) Dim result As DTSExecResult = pack.Execute() This fails although the same code in Windows app works. I think it's a security rights issue so I give the full control right to the dtsx file and
1
1842
by: thirunavukarasukm | last post by:
I have a link wich opens a the second page with links wich call a javascript function. I have some problem with javascript. i am two aspx page.. in my first aspx page contain the second aspx page name.. i am clicking the second page link the second page is opened..
1
2483
by: sivainsearchof | last post by:
Hi, It would be of great help if some one could guide me on the below. I am trying to execute a DTS package created in sql server 2000 from a web application created in asp.net 1.1 using C#. I tried the same code with a windows application and was able to execute. The code that i had used.
6
5909
by: RandomElle | last post by:
Hi there I'm hoping someone can help me out with the use of the Eval function. I am using Access2003 under WinXP Pro. I can successfully use the Eval function and get it to call any function with or without parms. I know that any function that is passed to Eval() must be declared Public. It can be a Sub or Function, as long as it's Public. I even have it where the "function" evaluated by Eval can be in a form (class) module or in a standard...
2
2000
by: =?Utf-8?B?THVpZ2k=?= | last post by:
Hi all, how can I execute an SSIS (SQL Server 2005) package from an aspx page in a web application (.NET 2.0)? Thanks in advance. -- Luigi http://blogs.dotnethell.it/ciupaz/ --
3
3012
by: =?Utf-8?B?THVpZ2k=?= | last post by:
Hi all, how can I execute a SSIS Package from an aspx page in C#? I'm using .NET 2.0. Thanks a lot. -- Luigi http://blogs.dotnethell.it/ciupaz/
2
3374
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 ran the job from a Stored Procedure. Thanks! Phil
0
8462
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8382
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8802
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8658
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7405
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.