How to fix could not use view or function because of binding errors
<p>I have Table-valued function when trying to execute I am getting below error</p>

<blockquote>
  <p>Msg 208, Level 16, State 1, Procedure IPTRate, Line 19 Invalid object
  name 'DBName.dbo.AccessTable'. Msg 4413, Level 16, State 1, Line 3
  Could not use view or function 'dbo.ExchangeRate' because of binding
  errors.</p>
</blockquote>

<p>Actually the database name recently renamed from <code>DBName</code> to <code>DBNameNew</code>. Is the error because of database rename? how to fix this. please suggest.</p>

<p>Thanks.</p>