Arquivo para Novembro, 2005

Sobre o Firebird

Firebird é uma base de dados relacional com muitas características da norma ANSI Sql-99, funciona em Linux, em Windows, e em uma variedade de plataformas de Unix.

Firebird oferece a excelente acesso concorrente, elevado desempenho, e a uma excelente linguagem para Stored Procedures e Triggers.
Foi usado em sistemas de produção, sob uma variedade dos nomes desde 1981.
Firebird é um projeto comercialmente independente de programadores de C e de C++, de conselheiros técnicos e de apoiantes que desenvolvem e que realçam um sistema de gestão da base de dados relacional de multi-plataforma baseado no código de fonte disponibilizado pela Inprise Corp (conhecida agora como Borland Software Corp) em 25 julho de 2000 sob a licença pública interBase v.1.0. Firebird está completamente livre de todas as taxas do registo, licenciar ou da distribuição.
Pode ser desenvolvido livremente para o uso com todo o software de terceiros, comercial ou não.

Os módulos novos do código adicionados a Firebird são licenciados sob a licença Initial Developer’s Public License. (IDPL). Os módulos originais disponibilizados pela Inprise são licenciados sob a licença InterBase Public License v.1.0. Ambas são versões modificadas da licença Mozilla Public License v.1.1.
Fonte:http://firebird.sourceforge.net/

Deixe um Comentário

Character Sets and Collations

Cada campo CHAR ou VACHAR pode (ou, melhor: deve) estar associado a um conjunto de caracteres. O Firebird usa esta informação para armazenar correctamente os bytes quem compõem uma string.

Para ser capaz de ordenar e comparar strings, é necessários definir um conjunto. Um conjunto define o esquema de ordenação e conversão para maiusculas de uma string.
ver mais em:

http://www.destructor.de/firebird/charsets.htm

http://firebird.sourceforge.net/index.php?op=doc&id=fb_1_5_charsets&nosb=1

Deixe um Comentário

To BLOB or not to BLOB, eis a questão?

Devo armazenar string em BLOB, ou Char, ou VARCHAR?

Algumas notas que podem ajudar a decidir que decisão tomar em:
http://www.volny.cz/iprenosil/interbase/ip_ib_strings.htm

Deixe um Comentário

Firebird Logos

Deixe um Comentário

Binary Large Objects (BLObs)

In 1986 InterBase set the industry standard by storing sound, image, graphic, and binary information directly in the database using its BLOb data types. Internet and telephony applications use of BLObs and BLOb filters to store and manage multimedia data. BLOb filters are custom routines that transform the contents of a blob from one state to another. Filters are ideal for compression and translation and add nothing to the processing load on the client.

Deixe um Comentário

Stored Procedures – Reusable Business Processes

Stored procedures off-load common business tasks from the client to the server, causing major performance gains. Any InterBase application can use stored procedures. They encourage modular design, and make reuse and maintenance easier.

Deixe um Comentário

Triggers – Reusable Business Objects

Triggers – Reusable Business Objects Triggers store and enforce a company’s business rules on the server. The server itself guarantees that every application using corporate data adheres to these rules. InterBase triggers automate responses to events on the server, and validate input data whenever a row is inserted, updated, or deleted from a table. “InterBase…has the best implementation of modular, optionally-ordered, pre- and post-operation triggers.” DBMS, July 1996

Deixe um Comentário

User-Defined Function (UDF)

A user-defined function (UDF) is used to perform tasks that Firebird/InterBase can’t.

It can be described as an external database function written entirely in another language, such as C++ or Pascal, to perform data manipulation tasks not directly supported by InterBase/Firebird.

UDFs can be called from InterBase/Firebird and executed on the server. These functions can exist on their own or be collected into libraries. UDFs offer the possibility to create your own functions (such as SUBSTR) and integrate them in the database itself. Each UDF is arranged as a function, belonging to a DLL (Linux: .SO). Thus one dynamically loaded library consists of at least one function.

UDFs can be incorporated into the database using the IBExpert DB Explorer, IBExpert SQL Editor, or IBExpert Script Executive.

—————————–

UDFs give developers a means of extending InterBase’s analytical capabilities. They are reusable code, accessed from the server, and ensure data reliability and integrity. UDFs can process data themselves or call external services. InterBase provides a default library of User Defined Functions that offers commonly used functions. This library includes:

* Maths and trigonometry Functions, including cos, sin, base, log, and more.
* String functions: difference, insert, substring, and more.

Deixe um Comentário

Cast();

CAST (value AS TIMESTAMP) or CAST (value AS DATE) or CAST(value AS TIME) and same patter apply for any time.

Like Oracle Interbase/Firebird will automatically convert a string representation of a date/datetime to a date, however, you may CAST the string value to a date/date time explicitly by:

cast(‘2/1/2001′ as date)
cast(‘01-FEB-2001′ to date)
cast(NULL as date)
cast(‘TODAY’ | ‘YESTERDAY’ | ‘TOMMOROW’ | ‘NOW’ as date)
you also may add the time component
cast(‘01-FEB-2001:23:59:59′ to date)

var_Time = CAST(in_Date AS TIME);

Deixe um Comentário

Como instalar Firebird em Windows 2003 Server e Windows XP

Deixe um Comentário

Posts Mais Antigos »