Solved

How to call a stored procedure in an ActiveX Script in SQL Server 2000

Posted on 2008-10-23
4
572 Views
Last Modified: 2012-05-05
Hi all.

I have a stored procedure that accepts a parameter for the length of time to delay and I want to use it in an ActiveX Script that is in a DTS.

How can I call this stored procedure from within an ActiveX Script?

Thank you in advance.
CREATE PROCEDURE spDelay (@interval CHAR(9))
AS
WAITFOR DELAY @interval
GO

Open in new window

0
Comment
Question by:printmedia
  • 2
4 Comments
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 22794929
Like you execute a SQL query from ActiveX Script.
0
 

Author Comment

by:printmedia
ID: 22795862
Could you give me an example?
0
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 22796300
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 22796458
Why need a stored proc instead of directly calling the WAIFOR DELAY command?
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question