The question is fairly straight forward. There are many many many different articles online which will allow any person to dive into the following queries in detail. I'm only giving a high level view of memory usage based on DMV's (Dynamic Management Views).
Results:
Let’s take a peek into the Server Memory.
Syscacheobjects actually reads from sys.dm_exec_cached_plans.
But we’ll use the view to get the sql.
Distinct Cached Plans and Objects returned
Compiled Plan Proc
Compiled Plan Trigger
Compiled Plan Adhoc
Compiled Plan Prepared
Extended Proc Proc
Parse Tree UsrTab
Parse Tree Check
Parse Tree View
Results:
-----------------------
Buffer Pool Memory Per DB
Results:
-----------------------
How much space are my indexes taking up in memory?
Results:
If you have any comments or suggestions regarding these queries, feel free to post suggestions.