Como saber quantidade de linhas, colunas e tamanho de cada tabela no banco de dados.
USE SeuBancoDeDados GO CREATE TABLE #temp ( nome_tabela SYSNAME, linhas INT, tamanho_reservado VARCHAR(50), tamanho_dados VARCHAR(50), tamanho_indice VARCHAR(50), tamanho_naoUsado VARCHAR(50) ) SET nocount ON INSERT #temp EXEC Sp_msforeachtable 'sp_spaceused ''?''' SELECT a.nome_tabela, a.linhas, Count(*) AS quantidade_colunas, a.tamanho_dados FROM #temp a INNER JOIN information_schema.columns b ON a.nome_tabela COLLATE database_default = b.table_name COLLATE database_default GROUP BY a.nome_tabela, a.linhas, a.tamanho_dados ORDER BY Cast(Replace(a.tamanho_dados, ' KB', '') AS INTEGER) DESC DROP TABLE #temp
Blackjack, additionally known as twenty-one, is just one of one of the most popular gambling…
If you are a fan of online gambling, then you must have come across gry…
On the internet online casinos have transformed the betting industry, enabling players to vegas.hu online…
Casinos online offer free spins to draw new customers. These bonuses are usually very profitable,…
In recent times, online casino sites have actually obtained enormous appeal among gamers, providing a…
Bitcoin, the most preferred cryptocurrency worldwide, has reinvented lots of industries, including the on baixar…