firebird

Firebird: Unable to complete network request to host

女生的网名这么多〃 提交于 2019-11-28 01:56:01
I'm trying to connect to a remote Firebird database "test" (alias already added). It is not an embedded server, and is installed on VM with IP 192.168.1.147. Here is my connection string: User=sysdba;Password=masterkey;Database=test;DataSource=192.168.1.147 However I got an error: FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Unable to complete network request to host "192.168.1.147". ---> Unable to complete network request to host "192.168.1.147". I've done some research on that but haven't got a clue yet. Some help needed. Thanks My IP address is 192.168.2.108, and I can ping

Load and save image from blob field in delphi using firebird

守給你的承諾、 提交于 2019-11-28 01:37:17
问题 In my Firebird database I have a Blob field that contain a Bitmap. I'll have to load and display in a TImage located on my Form. Subsequently I'll have to save in the same field the image selected by a OpenDialog. 回答1: Procedure LoadBitmapFromBlob(Bitmap: TBitmap; Blob: TBlobField); var ms, ms2: TMemoryStream; begin ms := TMemoryStream.Create; try Blob.SaveToStream(ms); ms.Position := 0; Bitmap.LoadFromStream(ms); finally ms.Free; end; end; example usage procedure TForm4.Button1Click(Sender:

how to connect to firebird DB on android

孤人 提交于 2019-11-28 01:21:44
I need to connect my android application to my firebird DB do someone knows how to do this? please write the code! I'm not particularly familiar with Firebird, but my guess is the best approach would be to use a web service of some sort (RESTful?) which allows your Android client to communicate with the database. This is the solution that is typically used for most apps since you can't connect directly to the database from Android. It's also good from a design standpoint because your application does not depend on the underlying database itself, but rather the web service which acts as a

How to connect and use Firebird db embedded server with Visual C# 2010

房东的猫 提交于 2019-11-27 19:10:38
I was trying to use Firebird embedded server with Microsoft Visual C# 2010. so here is what I done till now: Downloaded Firebird .Net Data Provider ( Firebird Client v2.5.2 ). Downloaded Firebird Embedded server ( Firebird Embedded Server v2.5.0 ). Added a reference to FirebirdSql.Data.FirebirdClient.dll to my project. Extracted and Copied fbembed.dll file to my application's directory. Added my FDB file "TEST.FDB" to my application's directory. Added " using FirebirdSql.Data.FirebirdClient; " statement. So far so good (I suppose)... Now when I try to connect to my FDB file using the following

Generate insert SQL statements from a CSV file

烈酒焚心 提交于 2019-11-27 18:27:58
I need to import a csv file into Firebird and I've spent a couple of hours trying out some tools and none fit my needs. The main problem is that all the tools I've been trying like EMS Data Import and Firebird Data Wizard expect that my CSV file contains all the information needed by my Table. I need to write some custom SQL in the insert statement, for example, I have a CSV file with the city name, but as my database already has all the cities in another table (normalized), I need to write a subselect in the insert statement to lookup for the city and write its ID, also I have a stored

How to split comma separated string inside stored procedure?

跟風遠走 提交于 2019-11-27 18:13:30
问题 How to split comma separated string into strings inside store procedure and insert them into a table field? Using Firebird 2.5 回答1: Here a sample how to split the string and write the sub-strings into a table: create procedure SPLIT_STRING ( AINPUT varchar(8192)) as declare variable LASTPOS integer; declare variable NEXTPOS integer; declare variable TEMPSTR varchar(8192); begin AINPUT = :AINPUT || ','; LASTPOS = 1; NEXTPOS = position(',', :AINPUT, LASTPOS); while (:NEXTPOS > 1) do begin

In FirebirdSql, how to return exception message from procedure

丶灬走出姿态 提交于 2019-11-27 15:39:44
I want to return the error message from a procedure when an exception happens. In SQL Server you would select the Error_Number() and Error_Message(). How would I do it in FirebirdSql SET TERM ^ ; CREATE PROCEDURE sprocname ( id int ) RETURNS ( gcode int, errmsg varchar(250) ) AS BEGIN gcode = 0; errmsg = ''; -- do procedure code here WHEN ANY DO BEGIN gcode = gdscode; -- ?? errmsg = ??; END SUSPEND; END^ SET TERM ; ^ Unfortunately you will need to do that at the client side, as it is currently not possible to obtain this in PSQL. There is a feature request in the Firebird tracker, which has

How to get all the fields of a row using the SQL MAX function?

一曲冷凌霜 提交于 2019-11-27 15:17:10
问题 Consider this table (from http://www.tizag.com/mysqlTutorial/mysqlmax.php): Id name type price 123451 Park's Great Hits Music 19.99 123452 Silly Puddy Toy 3.99 123453 Playstation Toy 89.95 123454 Men's T-Shirt Clothing 32.50 123455 Blouse Clothing 34.97 123456 Electronica 2002 Music 3.99 123457 Country Tunes Music 21.55 123458 Watermelon Food 8.73 This SQL query returns the most expensive item from each type: SELECT type, MAX(price) FROM products GROUP BY type Clothing $34.97 Food $8.73 Music

Incompatible wire encryption levels requested on client and server with Firebird ado.net provider

你说的曾经没有我的故事 提交于 2019-11-27 15:03:45
I am testing the connection firebird 3 using C #. The version of what I'm used is the latest : Firebird ADO.NET Provider 5.0. But when you make the connection , the error occurs "Incompatible wire encryption levels requested on client and server"." At " Does Firebird ADO.NET 4.10.0.0 Data provider work with Firebird 3.0? ", there are some suggestions for enabling authentication in legacy model or create legacy user. But my question is if really does not support to new SRP authentication model in version 5.0 Net Provider? The problem has nothing to do with SRP in itself, but that the Firebird

GDS Exception. 335544421. connection rejected by remote interface

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 09:49:35
I am trying to connect to a firebird db using the jaybird jdbc driver. Firebird is running under ubuntu. I have created a simple database located under /tmp/hellofb.fdb (yeah not the best place, just for testing). I am running firebird superserver 3.0. The firebird service is up and running sudo service firbird3.0 status : firebird3.0.service - Firebird Database Server ( SuperServer ) Loaded: loaded (/lib/systemd/system/firebird3.0.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2017-10-25 22:40:53 CEST; 25min ago Process: 23411 ExecStart=/usr/sbin/fbguard -pidfile