This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [YourDBName] | |
SELECT * FROM sys.Tables | |
SELECT * FROM sysobjects WHERE xtype='u' | |
-- https://ignas.me/tech/select-all-tables-database/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using Microsoft.AspNetCore.Mvc; | |
namespace WebApplication4.Controllers | |
{ | |
[Route("api/[controller]")] | |
public class ValuesController : Controller | |
{ | |
[HttpGet] | |
public IActionResult Get() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Database size in MB | |
SELECT | |
SUM(reserved_page_count) * 8.0 / 1024 AS 'MB' | |
FROM sys.dm_db_partition_stats | |
-- https://ignas.me/tech/sql-database-tables-sizes/ |
NewerOlder