Re: [Firebird-net-provider] Want to run 'gbak.exe' from within

2009-02-17 Thread Rolf Marsh
I still get the following error message: Cannot attach to services manager service localhost:service_mgr is not defined How do I fix this? Zvjezdan Tomicevic wrote: This works for me: public void GenerateBackup() { FbBackup backupSvc = new FbBackup();

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within

2009-02-17 Thread Zvjezdan Tomicevic
This works for me: public void GenerateBackup() { FbBackup backupSvc = new FbBackup(); backupSvc.ConnectionString = Properties.Settings.Default.ConnectionString; string filePath = "C:\backup.fbk"; backupSvc.BackupFiles.Add(new FbBackupFile(

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within

2009-02-17 Thread Rolf Marsh
HI Juergen... OK... I'll just leave it at 2048... my major problem is that I'm getting a message "Cannot attach to services manager service :service_mgr is not defined" when I try any of the examples at http://fisheye1.atlassian.com/browse/firebird/NETProvider/NETProvider_17/source/FirebirdSql.D

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within

2009-02-17 Thread VS-Polis
Title: Jürgen Thomas Hi Rolf, I read in the Firebird ADO.NET Provider SDK Documentation and don't understand this property. The only information I found was an example in the FbBackup class: "backupSvc.BackupFiles.Add(new FbBackupFile(@"c:\testdb.gbk", 2048)); " In the IBExpert documentation I

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within

2009-02-17 Thread Rolf Marsh
I took a look at FirebirdSql.Data.FIrebird.Services namespace, and decided to try the FbBackup method as a test. In the BackupFiles method, it asks for the output filename and size... how does one determine what the size of the output file is going to be prior to doing the backup? Rolf VS-P

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within program

2009-02-17 Thread Rolf Marsh
Fantastic! Thank you so much...exactly what I was looking for... Regards, Rolf VS-Polis wrote: Hi Rolf, take a look at the FbBackup and FbRestore classes in the FirebirdSql.Data.Firebird.Services Namespace. Juergen Rolf Marsh schrieb: Hello... I have a Windows C# .NET program which spawns a

Re: [Firebird-net-provider] Want to run 'gbak.exe' from within program

2009-02-17 Thread VS-Polis
Hi Rolf, take a look at the FbBackup and FbRestore classes in the FirebirdSql.Data.Firebird.Services Namespace. Juergen Rolf Marsh schrieb: Hello... I have a Windows C# .NET program which spawns a process to execute gbak with associated parameters to either backup or restore the database.

[Firebird-net-provider] Want to run 'gbak.exe' from within program

2009-02-16 Thread Rolf Marsh
Hello... I have a Windows C# .NET program which spawns a process to execute gbak with associated parameters to either backup or restore the database. Is there a better way of doing this, like interfacing directly with the database engine? ---