Muthu Annamalai wrote:
> Thanks for replying, here is my code,
>
>
Hi,
I've rewrite your code into C#, because I'm not familiar with VB.NET,
but should be same:
if (backupPath == string.Empty)
{
return false;
}
try
{
FbBackup b = new FbBackup();
b.ConnectionString =
@"User=SYSDBA;Password=masterkey;Database=localhost:ucime;Dialect=3;Charset=NONE;Role=;Pooling=true;MinPoolSize=0;MaxPoolSize=50;PacketSize=8192;ServerType=0;";
b.BackupFiles.Add(new FbBackupFile(backupPath, 2048));
b.Verbose = true;
b.Options = FbBackupFlags.IgnoreLimbo;
b.Execute();
if (b.State == FbServiceState.Closed)
{
return true;
}
}
catch (Exception ex)
{
//HandleException(ex, "Backup Database");
return false;
}
return true;
when I try this with 2.0.1 (installed in my GAC, downloaded from site)
works fine. When I change reference to 2.1.0 (beta 3; downloaded from
site, compiled) works fine too. :o
Can you provide complete stack trace of exception?
--
Jiri {x2} Cincura
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
-------------------------------------------------------------------------
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