Microsoft Structured Query Language
Last updated
Last updated
master
Tracks all system information for an SQL server instance
model
Template database that acts as a structure for every new database created. Any setting changed in the model database will be reflected in any new database created after changes to the model database
msdb
The SQL Server Agent uses this database to schedule jobs & alerts
tempdb
Stores temporary objects
resource
Read-only database containing system objects included with SQL server
SELECT name FROM sys.databases
Lists all databases on the SQL Server.
SELECT * FROM sys.tables
Lists all tables in the current database.
select name from sys.tables
Lists the names of all tables in the current database