BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Howto load database names from Mssql server to a combobox

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Ibrahim Kutluay
Guest





PostPosted: Sat Mar 05, 2005 9:22 am    Post subject: Howto load database names from Mssql server to a combobox Reply with 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


Back to top
Roman Krejci
Guest





PostPosted: Sat Mar 05, 2005 1:37 pm    Post subject: Re: Howto load database names from Mssql server to a combobo Reply with 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...
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





PostPosted: Tue Mar 08, 2005 6:25 am    Post subject: Re: Howto load database names from Mssql server to a combobo Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.