Solved

vb6 times out while running a backup stored procedure

Posted on 2010-11-24
5
417 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 125 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 46

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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…

930 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

10 Experts available now in Live!

Get 1:1 Help Now