mssql select from database code example Example 1: how to select from mssql select * from table_name Example 2: select database in sql USE DatabaseName;