Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cancel the server process from client side script

Status
Not open for further replies.

Mar28

Programmer
Jul 17, 2001
3
0
0
ID
Hi,

I would like to know whether I can cancel the server process from client side script using a Cancel button on the Asp page.on clicking this button I need to stop the server process which in my case updates several tables and almost takes an hour.I would like to stop it from my HTML page.I use MTS.A 'Start' button starts this process.I can manually shut down the server process in MTS explorer.I want do the same thing to be done through an HTML page which might be event driven.Please suggest some methods by which I can do this.

Thanks,
Mar28
 
It will stop MTS package packageName:

Dim mtxCat As Catalog
Dim mtxPacks As CatalogCollection
Dim mtxPack As CatalogObject
Dim mtxUtil As PackageUtil
Dim root As Object

Set mtxCat = New Catalog
Set root = mtxCat.Connect(srvName)
Set mtxPacks = mtxCat.GetCollection("Packages")
Call mtxPacks.Populate
Set mtxUtil = mtxPacks.GetUtilInterface
For Each mtxPack In mtxPacks
If mtxPack.Name = packageName Then
Call mtxUtil.ShutdownPackage(mtxPack.Value("ID"))
End If
Next mtxPack

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top