Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb6 times out while running a backup stored procedure

Posted on 2010-11-24
5
Medium Priority
?
472 Views
Last Modified: 2012-05-10
Attached is the code I am running to send the information to sqlserver to run a backup stored procedure.

I don't get an error returned (I may just not know how to get it, I have return @@Error as the next to last line in my stored procedure, the last line is END)

What can I try to make it run longer?
Thanks guys,
Jerry
frmEntry.Timer1.Enabled = False
    strParamNameList = "@BackupPath"
    strParamValueList = Me.txtPath.Text
    Call fnADOExecuteSP_RS("sp_FullBackup", strParamNameList, strParamValueList)
    If strADOErr = "OK" Then
        MsgBox "Successful Backup"
        Unload Me
    Else
        MsgBox "Backup Failed"
    End If
frmEntry.Timer1.Enabled = True

Open in new window

0
Comment
Question by:JDL129
5 Comments
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 34212078
What is the Timeout value now ? Try increase it.

Raj
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 34212080
You should look into the code of that fnADOExecuteSP_RS function.  Try to increase the Timeout setting on the Command and Connection objects...
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 34213067
Backup operations may take hours depending on the size of the database, so you should check how much is the connection timeout property.
Can't you make it asynchronous so you don't need to wait for response?
0
 
LVL 35

Expert Comment

by:David Todd
ID: 34213514
Hi,

One way to make asynchronous is to create a new job/call an existing job, and monitor job's progress from job history table, or logging statements in your script.

Regards,
  David
0
 

Author Closing Comment

by:JDL129
ID: 34230359
Increasing the timeout in the function did the trick!!!
Thanks to all responded!!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

916 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