title: sp_cursorprepare 'SELECT ........ WHERE 0 = 1' - what for?
body: <p>SQL Server Profiler shows that our ERP application sends quite a lot commands to DB server which look like:</p>
  
  <pre><code>declare @p1 int
  set @p1=NULL
  declare @p5 int
  set @p5=16388
  declare @p6 int
  set @p6=8196
  exec sp_cursorprepare @p1 output,NULL,N'SELECT * FROM SomeTable WHERE 0 = 1',1,@p5 output,@p6 output
  select @p1, @p5, @p6
  </code></pre>
  
  <p>To emphasize:</p>
  
  <p><code>exec sp_cursorprepare</code> and then <code>SELECT (...) WHERE 0 = 1</code></p>
  
  <p>Does it make any sense? Is this a kind of trick?</p>