sql-make-alternate-buffer-name

sql-make-alternate-buffer-name is a compiled Lisp function in `sql.el'.

(sql-make-alternate-buffer-name)

Return a string that can be used to rename a SQLi buffer.
This is used to set `sql-alternate-buffer-name' within
`sql-interactive-mode'.

If the session was started with `sql-connect' then the alternate
name would be the name of the connection.

Otherwise, it uses the parameters identified by the :sqlilogin
parameter.

If all else fails, the alternate name would be the user and
server/database name.