Solved

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

Posted on 2008-10-23
4
574 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 48

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 48

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connect to an SQL server ActiveX 10 26
tools to scan a SQL server's problem 14 27
Are triggers slow? 7 12
Casting is giving error in sql server 3 12
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…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

839 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