Subject | Re: [IBO] IBOAdmin Backup |
---|---|
Author | Mark Pickersgill |
Post date | 2004-03-21T13:40:10Z |
Sunday, 21 March 2004, 11:34 PM
Hi Don,
I too have had great difficulty with the IBOAdmin components, but I
managed to get at least the Services components cranked up under
Delphi 5 today!
Anyway, once I got that far I also had the same problem as
yourself.
If you replace the line in your code that says:
DatabaseName := gIP+':'+gFBPath;
with
LoginPrompt := false;
ServerName := gIP; // where Database server lives
DatabaseName := gFBPath; // This is soley the database file path
Protocol := cpTCP_IP; // Must set this to whatever protocol
you're using
it should work.
The current error you are receiving is because of the LoginPrompt
property. I haven't tried, but I think you'll have to hook up the
OnLogin event if you want the LoginPrompt.
cheers
Mark
DG> Still won't work. Now it says operation canceled by user. Here's what I've
DG> got:
DG> IBOBackupService1 := TIBOBackupService.Create(nil);
DG> with IBOBackupService1 do
DG> begin
DG> Params.Add('user_name=xxxx');
DG> Params.Add('password=yyyy');
DG> try
DG> Verbose := True;
DG> Options := [IgnoreLimbo];
DG> DatabaseName := gIP+':'+gFBPath;
DG> vBFile := extractfilepath(gFBPath)+'syncBkUp.fbk';
DG> BackupFile.Add(vBFile);
DG> Active := True;
DG> ServiceStart;
DG> while not eof do
DG> begin
DG> Application.ProcessMessages;
DG> Screen.Cursor := crHourGlass;
DG> Memo1.Lines.Add(GetNextLine);
DG> Memo1.Update;
DG> end;
DG> Memo1.Lines.Add('Backup file - ' + vBFile);
DG> Memo1.Lines.Add('Backup complete...');
DG> finally
DG> Active := False;
DG> screen.cursor := crdefault;
DG> end; //try/finally
DG> end;//with...
DG> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
DG> without the need for BDE, ODBC or any other layer.
DG> ___________________________________________________________________________
DG> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
DG> keyword-searchable FAQ, community code contributions and more !
DG> Yahoo! Groups Links
Hi Don,
I too have had great difficulty with the IBOAdmin components, but I
managed to get at least the Services components cranked up under
Delphi 5 today!
Anyway, once I got that far I also had the same problem as
yourself.
If you replace the line in your code that says:
DatabaseName := gIP+':'+gFBPath;
with
LoginPrompt := false;
ServerName := gIP; // where Database server lives
DatabaseName := gFBPath; // This is soley the database file path
Protocol := cpTCP_IP; // Must set this to whatever protocol
you're using
it should work.
The current error you are receiving is because of the LoginPrompt
property. I haven't tried, but I think you'll have to hook up the
OnLogin event if you want the LoginPrompt.
cheers
Mark
DG> Still won't work. Now it says operation canceled by user. Here's what I've
DG> got:
DG> IBOBackupService1 := TIBOBackupService.Create(nil);
DG> with IBOBackupService1 do
DG> begin
DG> Params.Add('user_name=xxxx');
DG> Params.Add('password=yyyy');
DG> try
DG> Verbose := True;
DG> Options := [IgnoreLimbo];
DG> DatabaseName := gIP+':'+gFBPath;
DG> vBFile := extractfilepath(gFBPath)+'syncBkUp.fbk';
DG> BackupFile.Add(vBFile);
DG> Active := True;
DG> ServiceStart;
DG> while not eof do
DG> begin
DG> Application.ProcessMessages;
DG> Screen.Cursor := crHourGlass;
DG> Memo1.Lines.Add(GetNextLine);
DG> Memo1.Update;
DG> end;
DG> Memo1.Lines.Add('Backup file - ' + vBFile);
DG> Memo1.Lines.Add('Backup complete...');
DG> finally
DG> Active := False;
DG> screen.cursor := crdefault;
DG> end; //try/finally
DG> end;//with...
>> ----- Original Message -----DG> It
>> From: Don Gollahon
>> To: IBObjects (E-mail)
>> Sent: Wednesday, March 10, 2004 4:22 PM
>> Subject: [IBO] IBOAdmin Backup
>>
>>
>> I'm trying to use the IBOAdmin backup service and can't get it to work.
>> fails on the attach with a "SPB constant not supported." Does anyoneDG> have a
>> simple example of how this works?DG> spam
>>
>> I've tried to email the author but can't get an email thru. He has a
>> blocker and when I get the email from it the link doesn't work to verifyDG> the
>> email.DG> ___________________________________________________________________________
>>
>> Any help would be appreciated.
>>
>> Thanks.
>>
>>
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.611 / Virus Database: 391 - Release Date: 3/6/2004
>>
>> [Non-text portions of this message have been removed]
>>
>>
>>
>>
>>
>> IB Objects - direct, complete, custom connectivity to Firebird orDG> InterBase
>> without the need for BDE, ODBC or any other layer.DG> ___________________________________________________________________________
>>
>> http://www.ibobjects.com - your IBO community resource for Tech InfoDG> papers,
>> keyword-searchable FAQ, community code contributions and more !DG> ___________________________________________________________________________
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
DG> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
DG> without the need for BDE, ODBC or any other layer.
DG> ___________________________________________________________________________
DG> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
DG> keyword-searchable FAQ, community code contributions and more !
DG> Yahoo! Groups Links