Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IBX IBRestoreService Failure ...

63 views
Skip to first unread message

MarcTB

unread,
Dec 6, 2001, 8:57:20 AM12/6/01
to
hello,
when restore the database with IBRestoreService i get every time the
message: 'Cannot perform operation -- service is not attached'. What's wrong
?
With gbak i can restore database.
Code:
...
with IBRestoreService1 do
begin
ServerName := Host;
LoginPrompt := False;
Params.Add('user_name=sysdba');
params.Add('password=abc123');
Active := True;
try
Verbose := True;
options := [Replace];
PageBuffers := 3000;
PageSize := 4096;
DatabaseName.Add('c:\xxx.gdb');
BackupFile.Add('c:\xxx.gbk');
ServiceStart;
Application.ProcessMessages;
While not Eof do
Memo1.Lines.Add(GetNextLine);
finally
Active := False;
end;
end;
...

Jeff Overcash (TeamB)

unread,
Dec 6, 2001, 9:49:12 AM12/6/01
to
You have to call Attach somewhere between setting the params and StartService.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
The fool escaped from paradise will look over his shoulder and cry
Sit and chew on daffodils and struggle to answer why?
As you grow up and leave the playground
Where you kissed your Prince and found your frog
Remember the jester that showed you tears, the script for tears. (Fish)

MarcTB

unread,
Dec 7, 2001, 2:19:12 AM12/7/01
to
hello,
thanks for answer but when i call attach i get the following message:
'Cannot perform operation -- service is attached'. help me !!!

"Jeff Overcash (TeamB)" <over...@onramp.net> schrieb im Newsbeitrag
news:3C0F8568...@onramp.net...

0 new messages