firebird-3.0

Select from execute block?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 15:02:21
问题 Is is possible to select from execute block result? I want to perform some operation (sum etc..) from it. select t1.* from ( execute block returns ( OUT_VALUE integer ) as begin ... suspend; end ) t1 or with t1 as ( execute block ... ) select * from t1 order by t1.sort_column Neither does not work. Anyone has an advice? Thanks! 回答1: You should create an independent stored procedure like create procedure proc1 returns ( OUT_VALUE integer ) as begin ... suspend; end and then select on this proc

How to enable wirecompression on Firebird 3.0

孤街浪徒 提交于 2019-12-12 18:33:11
问题 I work with Firebird and Delphi, I want to implement access via internet with wirecompression; But I am unable to activate it. I have followed the steps inside this document for the new parameter(one of the few I was able to find) How to enable WireCompression on Firebird 3.0 using FireDAC In the tests I use Windows server 2012 R2 Firebird : Firebird-3.0.4.33054_0_Win32(32 bits) Also copied to executable folder. fbclient.dll zlib1.dll (idem server and client) created firebird.conf with

How to enable WireCompression on Firebird 3.0 using FireDAC

大兔子大兔子 提交于 2019-12-12 10:58:10
问题 I am looking to connect to Firebird Server 3.0 using WireCompression. This being new feature since version 3.0 I'm having a hard time to get it to do so and the only documented instructions I can find is setting WireCompression to TRUE in firebird.conf and use the connect parameter "wirecompression=true". This is what I've got this far: firebird.conf: # Firebird configuration file for Firebird 3.0 64-bit SuperServer # Optimized by IBSurgeon (www.ib-aid.com) for HQbird distribution. #

Display two unrelated select queries with no mutual fields in one firebird procedure

元气小坏坏 提交于 2019-12-11 14:08:06
问题 How to properly display two unrelated select queries with no mutual fields in on procedure? Table1 Number 1 2 3 4 5 Table2 Letter a When i try to call them using this procedure, CREATE PROCEDURE SAMPLE RETURNS( Number SMALLINT, Letter Varchar) AS BEGIN FOR SELECT A.Number, B.Letter FROM Table1 A, Table2 B INTO :Number, :Letter DO BEGIN SUSPEND; END END; i get this result Number Letter 1 a 2 a 3 a 4 a 5 a here is my desired result Number Letter 1 a 2 3 4 5 回答1: Assuming you want a result set

Display all Dates in a given month and year in firebird select procedure

点点圈 提交于 2019-12-11 08:44:44
问题 I am making a program for Time and Attendance. I have a table with this fields ATTEND_PK INTEGER NOT NULL, EMP VARCHAR, ATTEND_DATETIME TIMESTAMP, USER_PK SMALLINT, ATTEND_UPDATETIME TIMESTAMP); here is the sample data | ATTEND_PK | EMP | ATTEND_DATETIME | | 1 | john | 1/23/2018 7:00:00 | | 2 | john | 1/23/2018 12:00:00 | | 3 | john | 1/23/2018 13:00:00 | | 4 | john | 1/23/2018 16:00:00 | | 5 | john | 1/24/2018 7:30:00 | | 6 | john | 1/24/2018 11:50:00 | | 7 | john | 1/24/2018 13:20:00 | | 8

Recursive Relationship on Dictionary Table

青春壹個敷衍的年華 提交于 2019-12-11 03:42:21
问题 I'm working on a poor, but ok for us , full-text search using only PSQL in Firebird. I'll try to simplify as much as possible by focusing on my problem: Summing up, this a dictionary table: SELECT * FROM FTS_KEYWORDS ID | KEYWORD ----+----------- 1 | 'FORD' 1 | 'MUSTANG' 1 | '2010' 2 | 'FORD' 2 | 'FUSION' 2 | 'TURBO' 2 | '2010' 3 | 'FORD' 3 | 'RANGER' 3 | 'TURBO' 3 | '2010' 3 | 'BLACK' There is too a FTS_TOKENIZE() procedure to get the words from the whole strings Case 1: User search with 1

Firebird .NET provider and embedded server 3

梦想与她 提交于 2019-12-10 13:21:26
问题 I'm trying to use .NET Firebird Provider to connect to the embedded FB 3.0.1 server. As far as I know, (also written here (page 6)), there is no more fbclient.dll\fbembed.dll but a single client fbclient.dll used for remote and embedded access. But when I call the FBConnection.Open() I get a System.DllNotFoundException: Unable to load DLL 'fbembed': Impossible to find the specified module (Exception from HRESULT: 0x8007007E). Any ideas? 回答1: Looking in the Provider code the default Client

Does Firebird ADO.NET 4.10.0.0 Data provider work with Firebird 3.0?

回眸只為那壹抹淺笑 提交于 2019-12-04 14:52:47
I'm currently trying to get my ASP.net 4.5 project connecting to the recently release Firebird 3.0. I'm using Visual Studio 2015 Community edition, Firebird 3 (64 bit), and used NuGet to get the ADO.NET 4.10.0.0. However, when I try to connect, I get an exception withe the following message: this.connect.ServerVersion threw an exception of type 'System.InvalidOperationException' Some other messages that I get: Message: "The connection is closed" Source: FirebirdSQL.Data.Fierbird.Client StackTrace: at FirebirdSql.Data.FirebirdClient.FbConnection.get_ServerVersion() in C:\Users\Jiri\Documents

“connection rejected by remote interface” connecting to Firebird 3 with PDO

♀尐吖头ヾ 提交于 2019-12-04 10:40:37
问题 Try code below, but cause exception - SQLSTATE[HY000] [335544421] connection rejected by remote interface : try { $dbh = new PDO("firebird:dbname=localhost/3050:empty", "SYSDBA", "masterkey"); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sth = $dbh->query('SELECT idmspos, idmsqnt, cdmsval from svc$dms'); $sth->setFetchMode(PDO::FETCH_ASSOC); while($row = $sth->fetch()) { echo $row['idmspos']." ".$row['idmsqnt']." ".$row['cdmsval']."<br>"; } $dbh = null; } catch(PDOException

Firebird 3 sysdba password stunning issue

亡梦爱人 提交于 2019-12-04 07:27:50
I migrated from firebird 2.5.x to 3.0 i have changed firebird.conf : WireCrypt = Enabled AuthServer = Legacy_Auth, Srp, Win_Sspi after that here you are what happened: I can connect from Netbeans IDE using SYSDBA masterkey. I can connect from FlameRobin (database admin. tool) using SYSDBA with other password. I can not connect from Wild-Fly server using SYSDBA with that other password. I am really wondering.!! I assume you are using Jaybird 2.2.x (or earlier) when connecting from Netbeans and Wildfly. With Firebird 3 a new authentication model was introduced called SRP (Secure Remote Password)