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 

how can i get list of databases from sqlserver

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





PostPosted: Wed Aug 13, 2003 8:10 am    Post subject: how can i get list of databases from sqlserver Reply with quote



hi,
I want to add Databases names into listbox
but i don't get list of databases from sqlserver

Thanks,


Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Wed Aug 13, 2003 8:52 am    Post subject: Re: how can i get list of databases from sqlserver Reply with quote



Connect to master database and execute
TADOConnection.OpenSchema(siCatalogs). Examine CATALOG_NAME column.

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"M.Fatih AKTAÇ" <mfaktac (AT) hotmail (DOT) com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:3f39f272 (AT) newsgroups (DOT) borland.com...
Quote:
hi,
I want to add Databases names into listbox
but i don't get list of databases from sqlserver

Thanks,





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.