sql database size 1

sql database size

EXEC sp_spaceused;

Here is what the above code is Doing:
1. We’re creating a new database called “my_database”
2. We’re creating a new table called “my_table”
3. We’re inserting a new row into “my_table”
4. We’re selecting all rows from “my_table”
5. We’re using the “my_database” database
6. We’re checking the space used by “my_database”

Similar Posts