title: How to return all records if parameter is null
body: <p>The following is my <em>SP</em>: </p>
  
  <pre><code>Alter PROCEDURE GetList 
  (
  
  @FromDate date = null,
  @ToDate date = null
  
  )
  AS
  
  Select * FROM CallList c
  Where c.CallDate &gt; @FromDate and c.CallDate &lt; @ToDate 
  </code></pre>
  
  <p>If there was no passed date filter, I want to get all the records.</p>
  
  <p>How would I do it?      </p>