firebird

Could not find driver ( PHP and Firebird )

早过忘川 提交于 2019-12-02 12:29:42
问题 I have a web-based PHP script named portail , so I want to make it functional on Ubuntu . I installed Xampp 5.6 , Firebird 2.5 under Ubuntu , then I uncommented the library: "extension=php_pdo_firebird.dll" and I made the specific configuration for php5 and firebird (https://mapopa.blogspot.com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html), but he always shows me the following message could not find driver localhost/portail Screenshot: 回答1: You should install the required php extension

Local Firebird db replication/sync to online db

一个人想着一个人 提交于 2019-12-02 12:18:02
问题 I am looking for a tip how to synchronize data from a local firebird database into online db? Few comments: On a local machine I use sales software which keeps data on firebird db. There is an internet connection, but I want to avoid direct db access (as the PC after 9pm is being turned off). I would like to create an online app (based on foundation + php + database) in which I will be able to view daily sales and explore past data. In local db, I will need to pull data from several different

Displaying blob data from a firebird database using PHP

為{幸葍}努か 提交于 2019-12-02 11:45:25
问题 So, i have this firebird database, with a " photo " column wich i'm trying to display. Here is what i've done so far: Since ,the content type is unknown ( I'm not the one who created the database, and there is no colomn indicating the type). From the first 20 character of the blob data i guess it's a bmp. Here's a sample code : Before this : code to connect, run a query to get the table and fetch the result as object ( everything works fine until here) $blob_data = ibase_blob_info($row->PHOTO

is there any way to pivot rows to columns dynamically without a specific no of columns in firebird

微笑、不失礼 提交于 2019-12-02 10:56:08
I need a way to display my data from rows to columns dynamically using sql. My row no. starts from 0 to N and I want to convert it to columns. I cannot use static column to match my requirement because the maximum no of rows changes every time depending on the policy required by the company. I have done researching but firebird has no pivot/transpose/cross-tab implementation (i might be wrong). Here are my tables here is my client tables here is my payable table i need to display like this since there are many clients involve as you can notice my client can have 0 to N payable. Is there a way

Connecting to Firebird database from Windows local network

陌路散爱 提交于 2019-12-02 10:24:12
I have been writing a small Python app for several weeks. The application reads data from a Firebird database and it copies it to another DB. I'm using FDB with Firebird embedded. This is my connection code. def createConnectionTo(path): try: connection = fdb.connect( database=path, user='SYSDBA', password='masterkey', charset='WIN1252' ) print("Connessione al database riuscita!\n") return connection except fdb.fbcore.DatabaseError as details: errorMsg = "ERRORE: impossibile connettersi al database!\nPer favore scegliere un altro file.\n\nDETTAGLI\n"+str(details).replace("\\n", "\n")+"\n"

How does Paradox manage null and empty values?

青春壹個敷衍的年華 提交于 2019-12-02 09:56:05
问题 I'm using Paradox tables through Borland Database Engine (BDE). I'm not able to realise the way null and empty string values are handled in string fields (Paradox data type "A"). My specific problem is how to determine if a field value is null or empty string. In Database Desktop tool they all seem to be empty strings. I need this because I'm migrating data (with Database Desktop and also programmatically) to a Firebird DB and the field values which seem to be empty strings are all copied to

Update one table from another w/o join statement (firebird)

寵の児 提交于 2019-12-02 09:18:43
I'd like to update the columns in on table based on the values of another table, I use a slightly old version of Firebird 2.1 so it doesn't have support for the join statement during update execution. In order to eliminate that, based on the instructions given in original firebird faqs http://www.firebirdfaq.org/faq323/ following statment should work, but it misses some of the values and values for that columns a returned as null as shown in the below tabular form of dataset. For example, Num 21 from Elements table should have 23 as value in its END_I column because it has exactly the same X_I

Create firebird data source in Visual Studio

我怕爱的太早我们不能终老 提交于 2019-12-02 08:52:24
I have an app in c# using Visual Studio 2010 express and realized the sqlce database i was using does not meet all of our needs. I am trying to figure out how to add a firebird datasource and point to my firebird database. I want to mimic the sqlce dataset creating a new dataset but with designer. I think my first step needs to be getting the data source added but I can't figure out how to do it. Any ideas? I tried following this article: http://www.ibprovider.com/eng/documentation/firebird_adonet/p2_visual_studio_2008.html#server_explorer as well as additional links within this article but

Opening a Firebird database file on a network share

人盡茶涼 提交于 2019-12-02 08:43:17
问题 I thought converting a mapped drive letter to a UNC path would be enough to be able to open a .GDB file, but alas: function ConvertToUNCPath(AMappedDrive: string) : string; var lRemoteString : array[0..255] of char; lpRemote : PChar; lStringLen : Cardinal; begin lpRemote := @lRemoteString; lStringLen := 255; If WNetGetConnection(Pchar(ExtractFileDrive(AMappedDrive)) , lpRemote, lStringLen) = NO_ERROR Then Result := lRemoteString else Result := ''; // No mapping found end; function

Why Delphi IBX TWideMemoField converts byte order in UTF8 string and how to avoid it?

自古美人都是妖i 提交于 2019-12-02 08:24:07
I am using Delphi 2009 with IBX on Firebird 3 database (I have no choice to choose other technologies, I have to adapt to the situation). I have the following defintions: Firebird BLOB field is defined as: BLOB SUB_TYPE 0 SEGMENT SIZE 80 TWideMemoField is defined as: object MainQryNOTES: TWideMemoField FieldName = 'NOTES' Origin = 'INVOICES.NOTES' ProviderFlags = [pfInUpdate] BlobType = ftWideMemo end The test string is "Цель по инфляции, %" and in it can be read from the BLOB field in the IBExpert software as: 26 04 35 04 3B 04 4C 04 20 00 3F 04 3E 04 20 00 38 04 3D 04 44 04 3B 04 4F 04 46 04