english/libraries/joomla/database/database/sqlsrv.php
/**
	 * Method to check and see if a field exists in a table.
	 *
	 * @param   string  $table  The table in which to verify the field.
	 * @param   string  $field  The field to verify.
	 *
	 * @return  boolean  True if the field exists in the table.
	 *
	 * @since   11.1
	 */
Method to check and see if a field exists in a table.
@param   string  $table  The table in which to verify the field.
@param   string  $field  The field to verify.

@return  boolean  True if the field exists in the table.


Method to check and see if a field exists in a table . @param string $table The table in which to verify the field . @param string $field The field to verify . @return boolean True if the field exists in the table .
protected function _checkFieldExists($table, $field)
	{
		$table = $this->replacePrefix((string) $table);
		$sql = "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS".
 				" WHERE TABLE_NAME = '$table' AND COLUMN_NAME = '$field'".
 				" ORDER BY ORDINAL_POSITION";
		$this->setQuery($sql);
		if ($this->loadResult()) {
			return true;
		}
		else {
			return false;
		}
	}
protected function _checkFieldExists ( $ table , $ field ) { $ table = $ this -> replacePrefix ( ( string ) $ table ) ; $ sql = " SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS " . "  WHERE TABLE_NAME = ' $ table ' AND COLUMN_NAME = ' $ field ' " . "  ORDER BY ORDINAL_POSITION " ; $ this -> setQuery ( $ sql ) ; if ( $ this -> loadResult ( ) ) { return true ; } else { return false ; } }
Method to check and see if a field exists in a table.
Method to check and see if a field exists in a table .