title: Dropping table in Sql-Server using try-catch block
body: <p>The code below works and is quite precise, but is it OK to do it like this as against the other 'standard' ways ?</p>
  
  <pre><code>--Drop table if exists
  begin try
      drop table #temp
  end try
  
  begin catch 
      print 'table does not exist'
  end catch
  
  --Create table
  create table #temp(a int, b int)
  </code></pre>