/
How to determine current database space usage?
How to determine current database space usage?
For MS SQL Server, follow these steps:
- Open a command shell cmd.exe
- >sqlcmd -S .\<instance> -U <user> -P <password>
default values:- instance: NETX_SERVER_SQL
- user: sa
- password: netxnetx_123456
- execute following command:
select name AS DBName, SQL_Server_Edition = serverproperty('Edition'), SQL_Server_Version = serverproperty('ProductVersion'),
(CAST(FILEPROPERTY(name, 'SpaceUsed') AS INT) / 128.0) as SpaceUsedMB FROM sys.database_files WHERE type = 0 and name = 'NETX_<your workspace>'
go - The usage of the databases in the given instance is shown.
Related articles
-
XDB_ENGINE; Connect to SysDatabase failed. (NETx BMS Server 2.0)
-
-
-
-
Related content
How to determine current database space usage?
How to determine current database space usage?
More like this
How much disk space do I need for my SQL database?
How much disk space do I need for my SQL database?
More like this
My database is full
My database is full
More like this
Is there a maximum database size?
Is there a maximum database size?
More like this
How to backup a MS SQL Server database
How to backup a MS SQL Server database
More like this
What kind of MS SQL Server license do I need?
What kind of MS SQL Server license do I need?
More like this