Where do I use T-sql for SQL Server? I have used SQL Server a fair amount but always with SSMS.  I would like to be able to use all the capabilities and understand the environment better but I do not know where I use T-sql.  I have tried a few tutorials but they seem to gloss over this simple but important part; where do I input these commands?  Is it command line?  Is it some command line type GUI that should have installed with the SQL Server installation?  In this post (https://www.tutorialgateway.org/sql-attach-database/), there is a good example of just jumping into the commands but not specifying where these commands are input.  Thank you for any help you can give me.
where do I input these commands? Is it command line?


You can use these commands in a variety of tools that connect to SQL Server these include :


SQL Server Management Studio.
SQLCMD (Command line tool) 
SQL Operations Studio, (Now SQL Azure Data Studio) 
Power Query tool in Excel. 
Powershell
SQL Developer
Toad for SQL Server


Pretty much any tool that allows you to connect and issue SQL commands.