/
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
Execute the following command using the actual values of the indicated variables in order to open an SQL prompt
sqlcmd -S .\<instance> -U <user> -P <password>
default values:
- instance: NETX_SERVER_SQL
- user: sa
- password: netxnetx_123456
On the SQL prompt, execute following commands
use netx_ef_<workspace_name> 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_<workspace_name>' go
- The usage of the databases in the given instance is shown.
, multiple selections available,
Related content
SQL Database
SQL Database
Read with this
XDB Parameters
XDB Parameters
More like this
Synchronizing the SQL database
Synchronizing the SQL database
More like this
Metering
Metering
More like this
System Configuration
System Configuration
More like this
Info menu
Info menu
More like this