Sunday, November 02, 2014

List databases in SQL Server using sqlcmd

c:\> sqlcmd -S .\DB_INSTANCE -Q "exec sp_databases"
Reference(s):
http://windows-linux-admin.blogspot.com/2011/06/list-all-databases-with-sqlcmd.html

No comments: