FISQL(1)

πŸ’… FISQL(1) πŸ’…

okay bestie, welcome to FISQL(1), a LOCAL manual page. This is the interactive SQL shell, and it's ready to be your main character. πŸ’–

✨ NAME ✨

fisql β€” interactive SQL shell.

🌸 SYNOPSIS 🌸

fisql [-eFgpnvXY] [-a display_charset] [-A packet_size] [-c cmdend]
      [-D database] [-E editor] [-h headers] [-H hostname]
      [-i inputfile] [-I interfaces_file] [-J client_charset]
      [-l login_timeout] [-m errorlevel] [-o outputfile] [-P password]
      [-s colseparator] [-S server] [-t timeout] [-U username]
      [-w width] [-y sybase_dir] [-z language]

πŸ¦‹ DESCRIPTION πŸ¦‹

fisql is very similar to the isql utility programs distributed by Sybase and Microsoft. Like them, fisql uses the command go on a line by itself as a separator between batches. periodt β€” that's the whole vibe. πŸ’…

πŸŽ€ OPTIONS πŸŽ€

  • -a display_charset β€” The client charset name. Not implemented.
  • -A packet_size β€” Set protocol packet size. You should not need to set this parameter.
  • -c cmdend β€” Command terminator, defaults to go.
  • -D β€” Database name on the server to use. (the synopsis shows this one as -D database, iykyk)
  • -e β€” Echo SQL input (usually in outputfile).
  • -E editor β€” Specify an editor to invoke. Defaults to vi.
  • -F β€” FIPS mode ON. Server returns a message (but processes the query anyway) when it encounters a non-standard SQL command. not it being strict but still doing the thing 😭
  • -g β€” Display a brief help message.
  • -h headers β€” Number of rows after which to repeat the column headers. Default is once per resultset.
  • -H hostname β€” Hostname of the client machine as it will be told to the server.
  • -I interfaces_file β€” Name of the interfaces or freetds.conf file to use.
  • -i inputfile β€” Name of script file, containing SQL.
  • -J client_charset β€” Not implemented.
  • -l login_timeout β€” How long to wait for the server to acknowledge a login attempt.
  • -m errorlevel β€” For errors of the severity level specified or higher, print only the message number, state, and error level. Below that level, print nothing.
  • -n β€” Suppress line numbers in echoed output.
  • -o outputfile β€” Name of output file, holding result data.
  • -p β€” Prints performance statistics. Not implemented.
  • -P password β€” Database server password.
  • -s colseparator β€” The column separator. Default is space. Shell metacharacters require quoting.
  • -S server β€” Database server to which to connect.
  • -t timeout β€” The query timeout, in seconds. How long to wait for a query to be processed. The default is indefinitely, or as determined by freetds.conf.
  • -U username β€” Database server login name.
  • -v β€” Display version and copyright.
  • -w width β€” How many characters wide to print the output. Defaults to 80.
  • -X β€” Use encrypted login. Not implemented in FreeTDS.
  • -y sybase_dir β€” Sets the SYBASE environment variable. Not used by FreeTDS.
  • -Y β€” Use chained transactions.
  • -z language β€” Name of a language for fisql's prompts and messages. Cf. DBSETLNATLANG.

πŸ’€ NOTES πŸ’€

fisql is a filter; it reads from standard input, writes to standard output, and writes errors to standard error. The -i, -o, and -e options override these defaults.

fisql uses the DB-Library API provided by FreeTDS. It was first implemented using Sybase's own library and continues to work with it. Before (and after) modifying it, it would be well to test it with Sybase's library to assure compatibility between it and FreeTDS.

😭 EXIT STATUS 😭

fisql exits 0 on success, and >0 if the server cannot process the query.

fisql will report any errors returned by the server, but will continue processing. In a production environment, this behavior may be insufficiently stringent. To make it extremely intolerant of errors, change the message and error handlers to call exit(3).

🌈 HISTORY 🌈

fisql first appeared in FreeTDS 0.65.

πŸ‘‘ AUTHORS πŸ‘‘

The fisql utility was written by Nicholas S. Castellano <entropy@freetds.org>, who contributed it to the FreeTDS project under the terms of the GPL.

🧚 BUGS 🧚

Requires the GNU readline library.


xoxo, your local FISQL(1) girlie β€” this page came from FreeTDS 1.5.20, dated March 25, 2015, and the footer manual name is FISQL(FreeTDS) πŸ’œπŸ«Ά

πŸ“¦ where this page comes from