Thanks for replying, here is my code,

 

Public Function BackupDatabase(ByVal backupPath As String) As Boolean

 

        If backupPath = String.Empty Then Return False

 

        Try

            With New FbBackup

                .ConnectionString = My.Settings.ConnectionString() 'Running
db connection string

                .BackupFiles.Add(New FbBackupFile(backupPath, 2048)) 'fbk
file

                .Verbose = True

                .Options = FbBackupFlags.IgnoreLimbo

                .Execute()

                If .State = FbServiceState.Closed Then

                    Return True

                End If

            End With

        Catch ex As Exception

            HandleException(ex, "Backup Database")

            Return False

        End Try

 

End Function

 

My connectionstring is as follows

 

User=SYSDBA;Password=masterkey;Database=C:\Pearlpos\Data\Store.fdb;Dialect=3
;Charset=NONE;

Role=;Pooling=true;MinPoolSize=0;MaxPoolSize=50;PacketSize=8192;ServerType=1
;

 

----------------------------------------------------------------------------
-------------------------

 

 Re: [Firebird-net-provider] Provider 2.1.0.0 FBBackup Execute Method throws
Object Ref Exception

From: Jiri Cincura <[EMAIL PROTECTED]> - 2007-05-11 16:45

 

Muthu Annamalai wrote:

> Hi,

> 

> I was using version 2.0.1.0 and backup method worked properly. Yesterday I

> changed the provider to version 2.1.0.0. In the new version fbbackup
execute

> method I am getting Object Reference exception. Then I switched back to
the

> old one and there is no exception. I am using Firebird server version is

> 2.0.0.12748.

 

Can you provide a piece of code you're using?

 

-- 

Jiri {x2} Cincura

http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com 

 

----------------------------------------------------------------------------
----------------------- 

Hi,

 

I was using version 2.0.1.0 and backup method worked properly. Yesterday I

changed the provider to version 2.1.0.0. In the new version fbbackup execute

method I am getting Object Reference exception. Then I switched back to the

old one and there is no exception. I am using Firebird server version is

2.0.0.12748.

 

Muthu Annamalai 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to