Solved

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

Posted on 2008-10-23
4
581 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 50

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 50

Accepted Solution

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

Expert Comment

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

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

717 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