 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ibrahim Kutluay Guest
|
Posted: Sat Mar 05, 2005 9:22 am Post subject: Howto load database names from Mssql server to a combobox |
|
|
Does anybady know a method for this.
i m currently developing a freeware utility for backup mssql (automatically)
and i dont want to write name by hand
Regards
|
|
| Back to top |
|
 |
Roman Krejci Guest
|
Posted: Sat Mar 05, 2005 1:37 pm Post subject: Re: Howto load database names from Mssql server to a combobo |
|
|
"Ibrahim Kutluay" <ikutluay at nozpam mayanet nokta com.tr> píše v diskusním
příspěvku news:42297a6f (AT) newsgroups (DOT) borland.com...
| Quote: | Does anybady know a method for this.
i m currently developing a freeware utility for backup mssql
(automatically)
and i dont want to write name by hand
Regards
|
procedure LoadCatalogList(Conn: tADOConnection; List: tStrings);
var
AdoDataset: tAdoDataset;
begin
AdoDataset := tAdoDataset.Create(nil);
Try
Conn.OpenSchema(siCatalogs, Emptyparam , Emptyparam , ADODataset);
ADODataset.Recordset.MoveFirst;
While not ADODataset.EOF do begin
List.Add(ADODataset.FieldByname('CATALOG_NAME').AsString);
ADODataset.NEXT;
End;
Finally
AdoDataset.Free;
End;
end;
BTW, most probably you are trying to reinvent the wheel,
because the best approach for backing up MS SQL automatically
is to use the tools provided with MS SQL server itself.
--
Roman
(please remove 'stopspam' in the header when replying)
mail: [email]info (AT) rksolution (DOT) cz[/email]
URL: www.rksolution.cz
|
|
| Back to top |
|
 |
Ibrahim Kutluay Guest
|
Posted: Tue Mar 08, 2005 6:25 am Post subject: Re: Howto load database names from Mssql server to a combobo |
|
|
Dear Roman...
I know the functonality of sql server tools but
currently im trying to backup+zip it+write on the cd with only one mouse
click.
thanks for proposal
"Roman Krejci" <news (AT) rksolution-nospam (DOT) cz> wrote
| Quote: |
"Ibrahim Kutluay" <ikutluay at nozpam mayanet nokta com.tr> píše v
diskusním
příspěvku news:42297a6f (AT) newsgroups (DOT) borland.com...
Does anybady know a method for this.
i m currently developing a freeware utility for backup mssql
(automatically)
and i dont want to write name by hand
Regards
procedure LoadCatalogList(Conn: tADOConnection; List: tStrings);
var
AdoDataset: tAdoDataset;
begin
AdoDataset := tAdoDataset.Create(nil);
Try
Conn.OpenSchema(siCatalogs, Emptyparam , Emptyparam , ADODataset);
ADODataset.Recordset.MoveFirst;
While not ADODataset.EOF do begin
List.Add(ADODataset.FieldByname('CATALOG_NAME').AsString);
ADODataset.NEXT;
End;
Finally
AdoDataset.Free;
End;
end;
BTW, most probably you are trying to reinvent the wheel,
because the best approach for backing up MS SQL automatically
is to use the tools provided with MS SQL server itself.
--
Roman
(please remove 'stopspam' in the header when replying)
mail: [email]info (AT) rksolution (DOT) cz[/email]
URL: www.rksolution.cz
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|