I'm trying to get a small report from SQL Server 2008.
I need to list all databases created on the server, including:
- Name
- Creation date
- user (the one with db_owner permissions)
- and size
He sp_helpdb
gives me certain data and I can't match it with my query:
SET language 'Spanish'
SELECT
name AS [Nombre DB]
,LEFT(DATENAME(WEEKDAY,crdate),10) + ' ' + CONVERT(VARCHAR(10),crdate,105) AS [Fecha Creación]
FROM master.dbo.sysdatabases
order by crdate
Any idea how to do it?
Hoping you have the necessary permissions, use: