title: What are sql function possible positions in sql statement?
body: <p>I am looking for all the possible positions in a sql statement that a sql function can be called. It is my first time to use sql functions and in my code I need to detect whether users' input contains sql function, if so, the input is not valid.</p>
  
  <p>The position in sql statement means <code>SELECT</code> clause or other clause like <code>FROM</code>, <code>WHERE</code>......</p>
  
  <p>I am using SQL Server</p>
  
  <p>So is there any suggestions for detect sql functions in a sql statement or all the possible positions for the function in a statement?</p>