Hi. I would like to enumerate all the databases in a given Sql Server instance.
I've searched and found no information. Would somebody post a piece of VB code to do that?
Thanks in advance
Rafael
You can do it with an SQL string:
use masterselect *from sys.databases|||
SELECT
*FROM
master.sys.databases
Should work, but there is probably a more standard way.
|||There is also a stored procedure called:sp_databases
No comments:
Post a Comment