if you just want to run queries, you can simply open a connection with ADO and use the recordset object to query the database.
If you want to replicate features of SQL-EM, you will need to use SQL DMO (see books online on that topic).
>Hello,
>
>I need some help to do the next:
>
>I want to get information of SQL like: existing servers, enter in a selected server, etc... like a enterprise manager but more simple, to make some querys at existing databases.
>
>I can I do that? What DLL's give me that? How can I've acess to the SQL Server objects?
>
>Thank's already for you support!
>Bye.
>
>M.Almeida
>MCP (Visual Fox)
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com