Subject | AW: [firebird-support] Re: Backup Restore problem |
---|---|
Author | Christian Waldmann |
Post date | 2010-04-22T12:10:57Z |
Hello Mauleen
If an exception is thrown, there is reported in what program context the exception was thrown. This information you have already posted.
But within the thrown exception, there is an exception code or even an exception message. If you catch the exception in the application, this info can be printed out, or examined in the debugger.
And here some other tips:
To replace the database during restore, all users must be logged out. Maybe even VS has a connection open. Be sure that no user are logged in.
Good programming
Christian Waldmann
P.S: I hope this brings the thread back to friendly, constructive conversation :-)
I clearly mention my error message. which was written in the post. you just read the post properly.
Mauleen
If an exception is thrown, there is reported in what program context the exception was thrown. This information you have already posted.
But within the thrown exception, there is an exception code or even an exception message. If you catch the exception in the application, this info can be printed out, or examined in the debugger.
And here some other tips:
To replace the database during restore, all users must be logged out. Maybe even VS has a connection open. Be sure that no user are logged in.
Good programming
Christian Waldmann
P.S: I hope this brings the thread back to friendly, constructive conversation :-)
I clearly mention my error message. which was written in the post. you just read the post properly.
Mauleen
--- In firebird-support@yahoogroups.com <mailto:firebird-support%40yahoogroups.com> , Milan Tome� - Position <tomes@...> wrote:
>
> Hi,
>
> you're still not giving us the error message or at least error code.
> What you're expecting from us then?
>
> M.
>
> Dne 22.04.2010 8:46, mauleen2001 napsal(a):
> >
> > Hi,
> >
> > I am having Firebird V2.1, Visual Studio 2005(vb.net) and Firebird
> > Client V2.1.
> > I am taking backup through Firebird client object and it works fine.
> > When i tried to restore my backup it fail and gives me error.
> >
> > My backup and restore functions are as below:
> >
> > My database name is DVSB.FDB and its size is more than 1 GB
> >
> > Private Sub BackUpDB()
> > Dim fbBackup As New FbBackup
> > fbBackup.Verbose = True
> > fbBackup.Options = FbBackupFlags.IgnoreLimbo
> > fbBackup.BackupFiles.Add(New FbBackupFile(strBackupSubDirectory &
> > "\DVSB.gbk", 4096))
> >
> > fbBackup.Execute()
> >
> > End Sub
> >
> > Private Sub RestoreDB()
> > Try
> >
> > Dim fbRestore As New FbRestore
> > fbRestore.Options = FbRestoreFlags.Create + FbRestoreFlags.Replace
> > fbRestore.PageSize = 8192
> >
> > fbRestore.BackupFiles.Add(New FbBackupFile(Path.GetTempPath &
> > "\DVSB.gbk", 4096))
> > End If
> > fbRestore.Verbose = True
> > fbRestore.ConnectionString = connectionString
> > fbRestore.Execute()
> >
> > End Sub
> >
> > My Error:
> > FirebirdSql.Data.Common.IscException: Exception of type
> > 'FirebirdSql.Data.Common.IscException' was thrown.
> > at FirebirdSql.Data.Client.Gds.GdsConnection.ReadStatusVector()
> > at FirebirdSql.Data.Client.Gds.GdsConnection.ReadResponse()
> > at
> > FirebirdSql.Data.Client.Gds.GdsServiceManager.Query(ServiceParameterBuffer
> > spb, Int32 requestLength, Byte[] requestBuffer, Int32 bufferLength,
> > Byte[] buffer)
> > at FirebirdSql.Data.Services.FbService.QueryService(Byte[] items)
> > at FirebirdSql.Data.Services.FbService.GetNextLine()
> > at FirebirdSql.Data.Services.FbService.ProcessServiceOutput()
> > at FirebirdSql.Data.Services.FbRestore.Execute()
> >
> > Can anybody tell me what I am doing wrong?
> >
> > Thanks,
> >
> > Mauleen
> >
>
>
> [Non-text portions of this message have been removed]
>
[Non-text portions of this message have been removed]