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

[Firebird-net-provider] [FB-Tracker] Created: (DNET-210) Use IP used for connection not the one reported by server for events

2009-02-17 Thread Jiri Cincura (JIRA)
Use IP used for connection not the one reported by server for events Key: DNET-210 URL: http://tracker.firebirdsql.org/browse/DNET-210 Project: .NET Data provider Issue

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

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

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

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

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

2009-02-17 Thread Mercea Paul
Hi Take a look at my code: private void btnBackUp_Click(object sender, EventArgs e) { //backup with service FbBackup fbbsvc = new FbBackup(); fbbsvc.ConnectionString = Properties.Settings.Default.AppConnStr; //take

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] [SPAM] RE: Want to run 'gbak.exe' from within

2009-02-17 Thread Rolf Marsh
Hi Paul... I still get the following error message: Cannot attach to services manager service localhost:service_mgr is not defined How do I fix this? Mercea Paul wrote: Hi Take a look at my code: private void btnBackUp_Click(object sender, EventArgs e) {

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

2009-02-17 Thread Zvjezdan Tomicevic
Which Firebird and .NetProvider version do you use? Have you tried with simple example first? On Tue, Feb 17, 2009 at 8:08 PM, Rolf Marsh rmma...@fastmail.us wrote: Hi Paul... I still get the following error message: Cannot attach to services manager service localhost:service_mgr is not

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

2009-02-17 Thread Mercea Paul
How looks your connection string? I think you miss something...data source = localhost ... Regards, Paul From: Rolf Marsh [mailto:rmma...@fastmail.us] Sent: Tuesday, February 17, 2009 21:08 To: For users and developers of the Firebird .NET providers Subject: Re: [Firebird-net-provider]

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

2009-02-17 Thread Rolf Marsh
Here is the example I am using... FbConnectionStringBuilder cs = new FbConnectionStringBuilder(); cs.DataSource = localhost; cs.UserID = SYSDBA; cs.Password = masterkey; cs.Database = dbBooks; FbBackup backupSvc = new FbBackup();

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

2009-02-17 Thread Zvjezdan Tomicevic
Is path j:\\Prager\\Backup\\backup.fbk local to you firebird server? I mean is drive J physical drive on your firebird server? On Tue, Feb 17, 2009 at 8:43 PM, Rolf Marsh rmma...@fastmail.us wrote: Yes, simple example... FbConnectionStringBuilder cs = new

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

2009-02-17 Thread Rolf Marsh
Yes, it's on the same machine... Zvjezdan Tomicevic wrote: Is path j:\\Prager\\Backup\\backup.fbk local to you firebird server? I mean is drive J physical drive on your firebird server? -- Open Source Business

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

2009-02-17 Thread Mercea Paul
Hi Rolf, Here is the example I am using... FbConnectionStringBuilder cs = new FbConnectionStringBuilder(); cs.DataSource = localhost; cs.UserID = SYSDBA; cs.Password = masterkey; cs.Database = dbBooks; [PM] If dbBooks is not

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

2009-02-17 Thread Zvjezdan Tomicevic
And your Firebird version and .Net provider version? On Tue, Feb 17, 2009 at 8:54 PM, Rolf Marsh rmma...@fastmail.us wrote: Yes, it's on the same machine... Zvjezdan Tomicevic wrote: Is path j:\\Prager\\Backup\\backup.fbk local to you firebird server? I mean is drive J physical drive on

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

2009-02-17 Thread Rolf Marsh
Hi... makes no difference... still gettting the error message: *Cannot attach to services manager service localhost:service_mgr is not defined* R Mercea Paul wrote: Hi Rolf, Here is the example I am using... FbConnectionStringBuilder cs = new

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

2009-02-17 Thread Zvjezdan Tomicevic
Try gettting the latest 2.5 Beta.Net provider. No matter it is still beta. On Tue, Feb 17, 2009 at 9:00 PM, Rolf Marsh rmma...@fastmail.us wrote: Firebird version is 2.0.5, .NET Provider version is 1.7 R Zvjezdan Tomicevic wrote: And your Firebird version and .Net provider version?

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

2009-02-17 Thread Rolf Marsh
Where do I find it? (I looked, but can only find Firebird Client 2.5 BETA) Zvjezdan Tomicevic wrote: Try gettting the latest 2.5 Beta.Net provider. No matter it is still beta. On Tue, Feb 17, 2009 at 9:00 PM, Rolf Marsh rmma...@fastmail.us mailto:rmma...@fastmail.us wrote: Firebird

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

2009-02-17 Thread Zvjezdan Tomicevic
Thats the one. http://downloads.sourceforge.net/firebird/FirebirdClient-2.5.0-Beta1.msi If you use events and FB2.1 you can get the latest version from SVN. I use it in production with no prob. (Basic dbaccess). Just try it out and see if it is provider issue. On Tue, Feb 17, 2009 at 9:17

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

2009-02-17 Thread Rolf Marsh
Error message: Could not load file or assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. Program, which used to work under 2.0.1, now no longer works... R Zvjezdan Tomicevic

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

2009-02-17 Thread Zvjezdan Tomicevic
Well, you need .NET 3.5 to use it, or get source and build it for .NET 2.0 or I,ll just send you one right now, latest build for 2.0. It comes in few minutes. On Tue, Feb 17, 2009 at 9:43 PM, Rolf Marsh rmma...@fastmail.us wrote: Error message: Could not load file or assembly

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

2009-02-17 Thread Rolf Marsh
Thank you... I'll let you know... R Zvjezdan Tomicevic wrote: I've sent it to rmma...@fastmail.us mailto:rmma...@fastmail.us as a RAR file. Hope this helps On Tue, Feb 17, 2009 at 9:49 PM, Zvjezdan Tomicevic zek...@gmail.com mailto:zek...@gmail.com wrote: Well, you need .NET 3.5 to

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

2009-02-17 Thread Rolf Marsh
yes...it is on the same machine as the FB server code, which is in c:\program files\firebird\bin Zvjezdan Tomicevic wrote: Is path j:\\Prager\\Backup\\backup.fbk local to you firebird server? I mean is drive J physical drive on your firebird server? On Tue, Feb 17, 2009 at 8:43 PM, Rolf

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

2009-02-17 Thread Mercea Paul
How looks your connection string? I think you miss something...data source = localhost ... Regards, Paul From: Rolf Marsh [mailto:rmma...@fastmail.us] Sent: Tuesday, February 17, 2009 21:08 To: For users and developers of the Firebird .NET providers Subject: Re: [Firebird-net-provider]

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

2009-02-17 Thread Zvjezdan Tomicevic
Just one more thing Your path j:\\Prager\\Backup\\backup.fbk. Is J network drive that you are referencing, or J is disk drive on computer with firebird server on it. I mean like hard disk J. When you are doing backup (as far as I remember) you need to specify path local to firebird server. You

[Firebird-net-provider] Usage of this list

2009-02-17 Thread Helen Borrie
To list users: Some people are not observing the rule of ensuring that their list postings are plain text. This has two effects that cause a lot of extra work for me as Administrator and also wrecks the threading of messages for everyone. The Sourceforge anti-spam process will tag non-text

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

2009-02-17 Thread Rolf Marsh
Zvjezdan Tomicevic wrote: Just one more thing Your path j:\\Prager\\Backup\\backup.fbk. Is J network drive that you are referencing, or *-- no, not a network drive* J is disk drive on computer with firebird server on it. I mean like hard disk J. * -- hard drive, same as where FB is located