Sp_databasesXML
- Last UpdatedNov 02, 2023
- 1 minute read
This stored procedure lists the available databases in the Microsoft SQL Engine. It lists all the databases from all data stores that are attached.
Syntax
sp_databasesXML()
Example
call sp_databasesXML();
Output
<?xml version="1.0" standalone="no"?>
<OASyS DNASQLEngineSchema>
<database name="RTDB"/>
<OASyS DNASQLEngineSchema>