Skip to content

MS SQL (SQL Server)

Erik Palencik edited this page Sep 18, 2025 · 2 revisions

To list available databases on server.

sqlcmd -L

Connect CMD on local SQL Express

sqlcmd -S localhost\SQLEXPRESS -E

You will see 1> you can write.

1> SELECT name FROM sys.databases;
2> GO

Clone this wiki locally