firebird

Django-firebird can not work

為{幸葍}努か 提交于 2021-02-08 03:08:14
问题 I downloaded the folder and put it into C:\Python27\Lib\site-packages\django\contrib\gis\db\backends\firebird ,but when I use it,give me a error:django.core.exceptions.ImproperlyConfigured: 'firebird' isn't an available database backend. Try using `django.db.backends.XXX, where XXX is one of: 'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3' Error was: No module named firebird.base I have already write the path into PYTHONPATH . How can I get this to work? 回答1: Use Django 1.3 (or

Why visual studio doesn't show data source of Firebird

天大地大妈咪最大 提交于 2021-02-05 11:15:13
问题 I have installed Firebird server 3.0 and Firebird ADO.net provider Client 7.1.1.0. I am trying to connect a database of this server via Visual Studio 2015 using entity framework. I have installed DDEX. Now, I can connect a database via server explorer but when I try to add a data model, the data source for Firebird is not in the options. I tried to follow this_link but I was still not successful. This is the image from server explorer where Firebird data source is present and connection is

Firebird Duplicating items C# .NET

主宰稳场 提交于 2021-02-05 10:43:05
问题 We have a Till Software which also works with restaurants built on .NET (C#) and Firebird DB. We are having a strange problem recently, the items in an order are duplicating themselves when we go back to the order. Strangely it's not the case always. It's happening only sometimes. I tried to figure out under what conditions it's happening but it's so random that it doesn't happen for a couple of days and then start duplicating items for the next two days. The software is so huge that I don't

Getting the length of a string in SQL

谁说胖子不能爱 提交于 2021-02-05 08:42:19
问题 I'm trying to get the length of a string in SQL (using Firebird version 2.x+). Whenever I select the length of a string it gives me the actual assigned maximum length of that string as opposed to getting the length of how many of the characters are taken in a record, as you can see here: as you can imagine, this does not help me, as I can't order by the length, since I'm trying to order by an attribute that has a constant length assigned. How would I achieve what I am trying to achieve? That

FirebirdSql.Data.FirebirdClient.FbException: too many open handles to database

社会主义新天地 提交于 2021-02-04 07:28:05
问题 Today I did a larger data import into a firebird 2.5.6 database and I got this exception: System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> FirebirdSql.Data.FirebirdClient.FbException: too many open handles to database ---> FirebirdSql.Data.Common.IscException: too many open handles to database bei FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ProcessResponse(IResponse response)

FirebirdSql Error occurred during login, please check server firebird.log for details

痴心易碎 提交于 2021-01-29 18:34:52
问题 I am trying to connect and read data from Firebird database using the FirebirdSQL .net provider (using FirebirdSql.Data.FirebirdClient). Here is the code: FbConnection viewdataConnection=new FbConnection(); viewdataConnection.ConnectionString = "database=localhost:c:\\firebirdTest\\testDB.fdb;user=sysdba;password=firebird"; viewdataConnection.Open(); While trying to Open() the connection, i get an error: An unhandled exception of type 'FirebirdSql.Data.FirebirdClient.FbException' occurred in

How to migrate firebird DATA blob subtype binary to SQL Server sql_variant using Python?

旧街凉风 提交于 2021-01-29 17:31:28
问题 As part of my records which come back from a Python fdb SQL select query, I get a b"string". I pass it on to SQL Server and execute a call to be stored into a sql_variant column in a SQL Server database. However I get this error: pyodbc.Error: ('HYC00', '[HYC00] [Microsoft][ODBC SQL Server Driver]Optional feature not implemented (0) (SQLBindParameter)') Here is the firebird field spec that the b"string" comes out of using fdb. DATA BLOB segment 80, subtype BINARY Nullable I even tried

Firebird php Failed to locate host machine

主宰稳场 提交于 2021-01-29 04:01:40
问题 I try to run an ibase_connect to an firebird database. The database is NOT on my localhost. It run on an network windows server. I have windows too and have an connection to the shared folder: Z:\Folder_WITH_DB. I have XAMPP installed with ibase extension pdo firebird extension . I copied the fbclient.dll into my XAMPP/php folder. But if i run this code: $db = 'Z:/Folder_WITH_DB/database.fdb'; $username='SYSDBA'; $password='masterkey'; $dbh = ibase_connect ( $db, $username, $password ) or die

SQL Firebird Pivot table conversion required

别等时光非礼了梦想. 提交于 2021-01-28 13:30:07
问题 I have a procedure that generated Friday and Thursday date in firebird. I use the following query to generate a list of data: select w_start as "Friday", w_end as "Thursday", (select count(*) from course C inner join enrolment E on E.cod_course=C.id where E.date_enrolled between w_start and w_end and C_TYPE = 'PU' and CONFIRMED='C' and (C.name like :PublicCourseOption1 or C.name like :PublicCourseOption2 or C.name like :PublicCourseOption3 or C.name like :PublicCourseOption4 or C.VERSION like

Obtaining one value per person from table (“latest-n-per-group before cutoff date”)

泪湿孤枕 提交于 2021-01-28 12:32:49
问题 In a database of mine there is a table called 'Budget' defined as follows CREATE TABLE BUDGET ( ID INTEGER NOT NULL, THERAPIST INTEGER, CURDATE DATE, ILLNESS SMALLINT, HOLIDAY SMALLINT); ALTER TABLE BUDGET ADD PRIMARY KEY (ID); The purpose of the table is to store how many hours a month a therapist is entitled to sick leave and regular holiday. The table has the following values ID: 1, THERAPIST: 36, CURDATE: 01/01/2012, ILLNESS:8, HOLIDAY: 8 ID: 2, THERAPIST: 36, CURDATE: 01/07/2012, ILLNESS