protected function _close() { sqlsrv_close($this->connID
);
} /**
* Platform-dependant string escape
*/
protected function _escapeString(string
$str): string
{ return str_replace("'", "''",
remove_invisible_characters($str, false
));
} /**
* Insert ID
*/
public function insertID(): int
{ return $this->
query('SELECT SCOPE_IDENTITY() AS insert_id'
)->
getRow()->insert_id ?? 0;
} /**
* Generates the SQL for listing tables in a platform-dependent manner.
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/