Solved

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

Posted on 2008-10-23
4
567 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 45

Expert Comment

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

Author Comment

by:printmedia
Comment Utility
Could you give me an example?
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
Comment Utility
0
 
LVL 26

Expert Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now