| What is Borland Interbase Server? Versioning architecture of Interbase SQL Server Interbase server advantages Interbase SQL language Interbase server current version Interbase SMP 2009 Developer Edition Interbase SMP 2009 ToGo Interbase productivity Interbase versus Firebird Start working with Firebird New Interbase database creation Interbase Server security SYSDBA User. Changing default password Connection to Interbase from client’s application Interbase and VBScript, Visual Basic, VBA Interbase and Delphi Interbase and .Net Interbase and C++ Interbase and 64 bits Interbase database editing - creation of tables, connections, and keys Creation of Interbase tables using IBConsole Creation of Interbase tables using isql.exe utility The List of Interbase administration utilities | |
What is Borland Interbase Server?Interbase SQL Server - is a databases management system developed by Borland Company. Versioning architecture of Interbase SQL ServerBorland Interbase database is based on versioning data storage architecture. This approach has a number of advantages over locking DBMSs:
Interbase server advantagesInterbase Server - is a cross-platform DBMS, which supports the majority of known platforms: Windows, Linux, Unix, Solaris, Mac OS, etc. Interbase has a number of advantages over other DBMSs:
Interbase SQL languageInterbase SQL language is compatible with SQL-92 standard. Moreover, Interbase server supports extensions of SQL language standard subset via user defined functions (UDF). Interbase SQL provides advanced SQL capabilities for stored procedures and triggers - PSQL. Interbase server current versionCurrently the newest version is Interbase 2009. Interbase 2009 Server is available in 4 variants:
Interbase SMP 2009 Developer EditionInterBase SMP Developer Edition is delivered free as a part of CodeGear integrated development environment; we recommend to use it for the first acquaintance. Interbase SMP 2009 ToGoInterbase SMP 2009 ToGo single-user version is embedded into application as a dll; it is aimed at development of portable applications with database size less than 3 megabytes. Meanwhile, it has all the necessary functions of a full-fledged database including transactions and SQL support. You can download various Interbase versions here: Interbase download. Interbase productivityInterbase Server was developed taking into account modern requirements to DBMS productivity. A number of technologies have been applied in the latest versions of Interbase SQL Server to increase substantially DBMS operation speed:
Interbase versus FirebirdThough Interbase 2009 and Firebird 2.5 are based on the common source code Interbase 6.0, these DBMSs are very different from each other on the modern development stage. Interbase 2009 has implemented the following options, which are not supported in the latest version Firebird 2.5:
Client-server version of Firebird SQL Server exists in two variants: Firebird Super Server and Firebird Classic. Interbase has implemented the architecture that unites the advantages of Classic and SuperServer - Interbase SuperServer + SMP. Super Server architecture - all client's connections are served by the single server process, there exists common client's cache. This allows lower consumption of resources for clients serving. Super Server disadvantage is inability to involve several processors for server operation. Classic Server Architecture creates individual server process for each client’s connection. Classic Server architecture is more reliable, as failure in one server process doesn’t cause rejection to serve all the clients. Moreover, Classic Server allows distribution of client’s connections between several processors. The architecture disadvantage is additional overheads for serving and synchronization of processes and the absence of common client’s cache. Interbase Super Server + SMP (symmetric multiprocessing) unites the advantages of two architectures - Classic è Superserver. Single server process of Interbase Super Server allows to reduce overheads and to use common client’s cache; SMP technology involves the potential of multiprocessor architecture, which was earlier unavailable for Classic Server. Start working with InterbaseYou may use test database employee.gdb to familiarize with Interbase. It is included into installation kit and is located in the folder C:\CodeGear\Interbase\examples\database\. New Interbase database creationA new database can be created via management console IBConsole. It is located in the folder C:\CodeGear\Interbase\bin:
The alternate way is using isql utility:
In ISQL each expression ends with semicolon. Connection can be tested by running the query:
If everything has been done in the right way it will return the path to the connected database:
Interbase Server securityInterbase SQL Server supports several user authentication methods:
To enable Embedded User Authentication, select WITH ADMIN OPTION when creating a database via SQL. You can simply set the appropriate parameter in database settings in IBConsole. The following instructions allow to control Embedded User Authentication mechanism:
After enabling the storage of users in a database, you can manage users via SQL operators:
Both authentication schemes, Classic and EUA, can be used on Interbase server simultaneously. You can read about authentication in detail in the article: SYSDBA User. Changing default passwordSYSDBA is administrative Firebird user with exclusive rights. Default Firebird password ismasterkey. To change password use gsec utility from Interbase:
With gsec utility you may create, delete, modify and view users. You may get the full list of commands by typing help. Connection to Interbase from client’s applicationFirst download and install the package of IBProvider Professional Edition . IBProvider Professional Edition is the set of COM-components that allows working with any version of Firebird and Interbase. The components are supported by most development tools: Delphi, C++ Builder, Visual C++, .Net Framework, C#, Visual Basic, VBScript, VBA and others. Let’s write simple VBScript to check connection to Interbase. Create empty vbs file and paste the following code into it stating the right path to the database:
Run the script in the command line to see the list of active connections to the database. Interbase è VBScript, Visual Basic, VBAFor the access to Interbase from VBScript, VBA, Visual Basic, ADO library is used (ActiveX Data Objects). You will find a lot of examples of working with the library in the documentation: examples of Interbase VBScript, VBA, Visual Basic. Interbase and DelphiIBProvider offers several means of working with Interbase from Delphi:
Interbase Delphi Examples: Interbase Delphi. Interbase and .NetTo access Interbase from .Net ADO .Net library is used. IBProvider site contains large step-by-step manual dedicated to working with Firebird in Visual Studio .Net (ADO .Net). Additional materials to the topic: Examples of working with ADO .Net for beginners. Interbase and C++IBProvider Professional Edition includes C++ library for working with OLE DB providers. It is the fastest means of working with OLE DB providers from Visual C++ 2007-2008 and from C++ Builder. Interbase database editing - creation of tables, connections, and keysYou need to create tables, connections between tables, primary keys, indexes, stored procedures, generators, and other objects in an empty database. You can use Interbase inbuilt features - IBConsole or isql.exe utility - to edit databases. Creation of Interbase tables using IBConsole
Creation of Interbase tables using isql.exeCreate the table:
Than paste one entry and select from the table:
There are many graphic utilities of Interbase administration other than isql. The List of Interbase Administration UtilitiesIBExpertIBExpert - Supports Firebird, Interbase, Yaffil. DDL and DML editors, visual query builder, code auto completion, Metadata Extractor, and many other capabilities.License: from 179 euro. www: IB/FB Development StudioIB/FB Development Studio - Supports Firebird, Interbase. Visual database designer, embedded MERGE, scheduler, code auto completion, query analyzer, performance monitor.License: from 149 euro. www: Blaze TopBlaze Top - Supports Firebird, Interbase. Developer and database administrator tool.License: from 129 euro. www: Database WorkbenchDatabase Workbench - Supports several database servers including Firebird and Interbase. Stored procedures debugging, analysis of plans, embedded data mining and metadata transfer.Licensed separately for Interbase and Firebird. 171$ for each engine (Interbase or Firebird). www: If your utility is absent in the above list, please write us at and we will add its description. | |