title: Must declare a scalar variable in a SQL Server stored procedure
body: <p>Why do I get the error?</p>
  
  <blockquote>
    <p>Must declare a scalar variable @wight</p>
  </blockquote>
  
  <p>In my stored procedure?</p>
  
  <pre><code>create PROCEDURE [dbo].Vector
      (@word Varchar, @Wight double ) 
  AS  
  SET NOCOUNT ON;
  
  SELECT
      DocId, TermWight * @Wight as "ss", word, id,
      wordid, IDF, TFij     
  FROM            TermWeight
  
  WHERE  (word = @word) and (TermWight &lt;&gt; 0)
  </code></pre>