flamerobin | database administration tool for Firebird RDBMS | Database library
kandi X-RAY | flamerobin Summary
kandi X-RAY | flamerobin Summary
FlameRobin is a software package for administration of Firebird DBMS. It is developed by:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flamerobin
flamerobin Key Features
flamerobin Examples and Code Snippets
Community Discussions
Trending Discussions on flamerobin
QUESTION
I have a pretty strange problem when trying to connect my C# program to an existing Firebird server.
First of all, this is reproducable with the default connection example from the Firebird documentation at https://github.com/FirebirdSQL/NETProvider/blob/master/Provider/docs/ado-net.md
...ANSWER
Answered 2021-Mar-11 at 12:26Thanks to Mark Rotteveel for the comment which got me to the solution.
I can connect with the default password "masterkey", so it is obvious that the srp user was created with the default credentials and therefore a connection with the other credentials is not possible.
I have to correct the users in my old server. Thanks for the hint that ADO.NET only supports srp.
QUESTION
I have the following table
...ANSWER
Answered 2021-Mar-05 at 08:37The error "multiple rows in singleton select" means that a query that should provide a single scalar value produced multiple rows. And that is not unexpected for a query with GROUP BY FK_T1
, as it will produce a row per FK_T1
value.
To fix this, you need to use a correlated sub-query by doing the following:
- Alias the table in the subquery to disambiguate it from the table itself
- Add a where clause, making sure to use the aliased table (e.g.
src
, andsrc.FK_T1
), and explicitly reference the table itself for the other side of the comparison (e.g.T2.FK_T1
) - (optional) remove the
GROUP BY
clause because it is not necessary given theWHERE
clause. However, leaving theGROUP BY
in place may uncover certain types of errors.
The resulting subquery then becomes:
QUESTION
I use FirebirdSql.Data.FirebirdClient to connect to a Firebird database (WPF desktop app).
Server Version: WI-V3.0.5.33220 Firebird 3.0, and ADO.net provider version is 7.5.0 (NuGet)
I created a user other than SYSDBA that only has read only access to the tables (only SELECT). Connecting with FlameRobin works without problems with this new user. However, when I specify this new user and corresponding read-only role in the FbConnectionStringBuilder class, I get a
"your username and password are not defined"
error. If I replace the new user by SYSDBA and corresponding password, the connection works.
...ANSWER
Answered 2020-Nov-11 at 14:56The problem is that, when connecting to Firebird 3, the Firebird ADO.net provider (FirebirdSql.Data.FirebirdClient) only supports the new SRP authentication plugin, not the Legacy_Auth authentication plugin. If your user is created using the Legacy_UserManager, then you cannot authenticate using the Firebird ADO.net provider. You need to create the user using Srp.
Depending on your exact Firebird config, you need to add Srp
to the UserManager
config list, and then create the user with:
QUESTION
I need to restrict SELECT access to a table in Firebird 3.0, so that not all columns can be read by the user.
This FAQ entry suggests to create a view with the restricted columns and then grant SELECT only on this view. However if I do that and connect with the restricted user with FlameRobin and try to select from the view, the error says I don't have SELECT rights to select from the underlying table. But If I grant access to that table, all columns can be read...
How can I grant SELECT access only to the restricting view and not to the whole underlying table?
...ANSWER
Answered 2020-Nov-02 at 13:22Since you do not want your user to have grants on the table, then it is the VIEW
which should have, (or a selectable Stored Procedure, when user permissions are regulated with SPs). The user "invokes" the VIEW (or an SP) and then the VIEW invokes the table.
QUESTION
I am trying to run the following Firebird SQL query in LibreOffice, which has embedded Firebird:
...ANSWER
Answered 2020-Aug-05 at 12:45The error "Syntax error in SQL statement" is a HSQLDB error. So, first, make sure your LibreOffice Base project is actually created as a Firebird Embedded project.
I was able to reproduce the error in LibreOffice Base 6.4.4.2 with a Firebird Embedded project. It looks like LibreOffice first tries to parse the query using HSQLDB (probably to be able to transform HSQLDB syntax to Firebird syntax), and only then forwards it to Firebird.
The cause of the error is the $
in RDB$GET_CONTEXT
which is not a valid character in an unquoted object name in the HSQLDB SQL syntax, while it is valid in the Firebird SQL syntax. Normally, double quoting the specific object name would solve this, but RDB$GET_CONTEXT
is not actually a function, but a syntax construct, so it can't be quoted in Firebird.
To be able to execute this query, you need to enable the 'Run SQL command directly' option in the SQL View, either under Edit > 'Run SQL command directly', or using the 'Run SQL command directly' button in the toolbar (database icon with >_
).
QUESTION
I found some code which works in FlameRobin to return the number of records for all tables in the database but am only able to run it in a TFDScript which works fine but no result set is accessible.
I tried various ways in TFDQuery and TFDCommand and looked at TFDConnection but they all error with 'unable to parse object 'set term'' as they are not expecting a script.
After searching for ages I can't find anyway of accessing results from TFDScript though there is a hint it can as it has a FetchOptions property.
I have the script below and would be grateful for any guidance.
...ANSWER
Answered 2020-Jul-02 at 13:24I couldn't immediately find a way of getting the result set from the FDScript. However, it is straightforward to get the result set using an FDQuery configured to access the Firebird database, preferably via an FDConnection.
Place the TFDConnection and TFDQuery on the form of a new VCL project.
Add a TDataSource and TDBGrid to the form, with the TDataSource's DataSet set to FDQuery1 and DBGrid1's DataSource set to DataSource1. Set the width of DBGrid1 to 500 or more.
Set FDQuery1's Sql.Text to
QUESTION
I have installed flamerobin admin tool 0.9.2 with Firebird 3. Is there any straightforward way to create PSQL stored functions via flamerobin and how? That would help me a lot!
...ANSWER
Answered 2020-Jun-21 at 08:24Creating stored functions works the same as creating stored procedures. For FlameRobin (like ISQL) that means switch statement terminators of FlameRobin using set term
and provide the DDL of the function:
QUESTION
I have been using Lazarus 2.x with Firebird 3 (via flamerobin) and i try to commit records via TSQLConnection, TSQLQuery, TDataSource in a data module.
I run the following script successfully in order to configure initially DBLookupCombobox, where the records are displayed without any problem.
...ANSWER
Answered 2020-Jun-11 at 20:12I just found that before appeals.SQLTransaction1.Active:=false
, i have to store DBLookupComboBox1.KeyValue
into a local variable as database connection afterwards is lost and thus there is not any value to DBLookupComboBox1.KeyValue but NULL.
Therefore i have to use that local variable into my SQL query to update the appropriate record.
I should be more careful next time!
QUESTION
I have been using Lazarus 2.x (free pascal) with firebird 3 (via flamerobin) and i try to commit records via TSQLConnection, TSQLQuery, TDBConnection in data module (appeals) etc.
I run the following code snippet and the records are successfully commited to firebird, but unfortunately DB connection afterwards is lost and thus there is not any record to be seen via DBGrid (not even column headers - totally blank). I have to terminate the application and reopen it to gain visual insight of my firebird via DBGrid.
Button click event
...ANSWER
Answered 2020-May-29 at 14:40The reason the DBgrid shows nothing is that SqlQuery1.ExecSQL does not return a result set, so SqlQuery1 cannot supply any records for the DBGrid to display. So call SqlQuery1.Open after your Commit.
However, before you can call SqlQuery1.Open, you need to give it a SELECT statement to Execute, because a SQL UPDATE statement does not return a result set, as you have already found. So, do something like:
QUESTION
I'm trying to open a .fdb (Firebird) database using FlameRobin but it is giving me the following error message:
...ANSWER
Answered 2017-Apr-26 at 20:30The error tells you that your Firebird version does not understand the on-disk structure (ODS) version of the database file. The database file has ODS 11.2, while your Firebird understands ODS 11.1 (and lower).
ODS 11.2 means it is a Firebird 2.5 database, while support for ODS 11.1 indicates you are currently using a Firebird 2.1 server. To be able to read the database, you will need to install Firebird 2.5.
See also All Firebird and InterBase On-Disk-Structure (ODS) versions.
Note that this is unrelated to the version of FlameRobin.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flamerobin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page