title: Incorrect syntax near @ fileid
body: <p>I'm trying to all the sql function from the c#.
  I've had added the parameters to the function as @ fileid and useid. But getting an error. I couldn't figure out the bug in my code..</p>
  
  <pre><code>string query = "exec fn_sh_HitInfo(@fileid,@UserID)";
          SqlCommand cmd = new SqlCommand();
          cmd.CommandText = query;
          cmd.CommandType = CommandType.Text;
          cmd.Parameters.Add("@fileid", SqlDbType.BigInt).Value=fid;
          cmd.Parameters.Add("@UserID", SqlDbType.BigInt).Value =UserID;
          string taglist = string.Empty;
  
  
          try
          {
              taglist = DBAction.ExecuteQuery(cmd, FilteringControl.ProjectID).ToString();
          }
  </code></pre>