Documentar Bases de datos Sql Server

135 views
Skip to first unread message

Carlos Admirador

unread,
Nov 5, 2018, 4:08:35 PM11/5/18
to AltNet-Hispano
Hola gente!!

Cómo documentar todas las bases de datos de varios servidores Sql Server ?
Tablas, y sus Columnas, relaciones, número de filas....etc.


Existen herramientas comerciales como ApexSql Doc (http://solutioncenter.apexsql.com/know-legacy-database-using-sql-server-documentation-tool/ o alguna de RedGate, pero más manual u open source?

Saludos gente!!!

Carlos Admirador

unread,
Nov 13, 2018, 10:16:08 AM11/13/18
to AltNet-Hispano

how to automate the documentation of all your SQL Server instances using PowerShell and SQL Server Management Objects (SMO), and export the information for each SQL Server instance to a nicely formatted Excel spreadsheet.



https://www.mssqltips.com/sqlservertip/1759/retrieve-a-list-of-sql-server-databases-and-their-properties-using-powershell
# Create an SMO connection to the instance
$s = new-object ('Microsoft.SqlServer.Management.Smo.Server') $instance
$dbs = $s.Databases

Cómo hacerlo con autenticación SQL Server (Instancia, usuario y contraseña)?

Carlos Admirador

unread,
Nov 13, 2018, 10:21:22 AM11/13/18
to AltNet-Hispano

Hay que buscar a los gurús de RedGate, SqlHack y otros...

Maravillas en PS como 

https://learn-powershell.net/2017/02/27/powershell-server-inventory-part-1-sql-database-build/


Carlos Admirador

unread,
May 8, 2021, 2:37:38 PM5/8/21
to AltNet-Hispano

Carlos Admirador

unread,
May 10, 2021, 11:34:24 AM5/10/21
to AltNet-Hispano
Reply all
Reply to author
Forward
0 new messages