Solved

vb6 times out while running a backup stored procedure

Posted on 2010-11-24
5
435 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 49

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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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…

685 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