Skip to content

_sql_open

bergsma edited this page Sep 26, 2014 · 3 revisions

#sql_open

###Open a channel to a SQL database.

Syntax

dbHandle = sql_open ( username,password,server,database ) ;

Arguments

  1. str username

The username for access.

  1. str password

The password for access.

  1. str server

The name of the server (or node) for access.

  1. str database

The name of the database for access.

Return Value

handle dbHandle
  • : A handle to the database.

The STATUS variable is set to $ACKNOWLEDGE

  • 0 : A NULL handle means the database was not connected.

The STATUS variable is set to %SQL

Warnings

  • %SQL : A NULL handle means the database was not connected.

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: dbHandle = sql_open ( username,password,server,database ) ;

Description

  • None

Examples

puts "Create an example for the function 'sql_open'" ;

Related Links

None

Clone this wiki locally