Daniel Vogelbacher | 10 Apr 2013 22:07

Using Wide-Functions on unixODBC fails

Hi,

when using the Firebird ODBC driver with unixODBC, the Wide-Functions
like SQLExecDirectW fails.

UnixODBC defines SQLWCHAR as a 2-Byte value. I've transformed my
wchar_t* strings to UCS2 and call SQLExecDirectW() with them.

Here is the trace (debug version):

----
SQLExecDirectW
Preparing statement:
        INSERT INTO FOO VALUES(NU
Preparing statement:
        INSERT INTO FOO VALUES(NU

HY000:1:-104:[ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Unexpected end of command - line 1, column 24
----

It seems that something in the ODBC driver truncates the
statement to the half. A short look into the code shows this function
inside the ConvertingString template (MainUnicode.cpp):

        SQLCHAR * convUnicodeToString( SQLWCHAR *wcString, int length )
        {
                size_t bytesNeeded;
                wchar_t *ptEndWC = NULL;
(Continue reading)

Daniel Vogelbacher | 10 Apr 2013 21:58

Using Wide-Functions on unixODBC fails

Hi,

when using the Firebird ODBC driver with unixODBC, the Wide-Functions
like SQLExecDirectW fails.

UnixODBC defines SQLWCHAR as a 2-Byte value. I've transformed my
wchar_t* strings to UCS2 and call SQLExecDirectW() with them.

Here is the trace (debug version):

----
SQLExecDirectW
Preparing statement:
        INSERT INTO FOO VALUES(NU
Preparing statement:
        INSERT INTO FOO VALUES(NU

HY000:1:-104:[ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Unexpected end of command - line 1, column 24
----

It seems that something in the ODBC driver truncates the
statement to the half. A short look into the code shows this function
inside the ConvertingString template (MainUnicode.cpp):

        SQLCHAR * convUnicodeToString( SQLWCHAR *wcString, int length )
        {
                size_t bytesNeeded;
                wchar_t *ptEndWC = NULL;
(Continue reading)

André Knappstein | 20 Mar 2013 14:28
Picon

Using Firebird ODBC in MS Word

Hi Gang!

Is  there  a  known technical reason why I can open literally any ODBC
driven data source in MS Word (2007 and higher), but *not* Firebird?

Do   I  have  to make any settings which escaped me so far, or will it
just  not  work  or  is the problem widely unknown so far? I'd like to
prepare   some   views  in  Firebird  and make them available for some
assistants (creating mail merges). 

There  is  no  problem  in  MS Excel (via MSQuery), but using the same
*.dqy  throws  "unable  to  connect to datasource: library 'C:\program
files\Firebi'   failed   to  load",  with  an  additional  information
"SQL-Status 08004, return code: SQL_ERROR".

Creating   a new connection throws "Unable to retrieve table metadata"
(original   in  German:  "Es  konnten  keine  Tabellenlisten  von  der
Datenquelle bezogen werden").

using driver .152

thanks for any hint.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
Bob Taylor | 13 Mar 2013 21:28
Picon

Unable to insert into Blob from Alpha 5 v11

Here is my setup:
 
WI-V6.3.2.26539 Firebird 2.5
Firebird_ODBC_2.0.1.152_Win32
Alpha Five version 11 build 3353
 
 
FB Column Definition = BLOB SUB_TYPE 0
 
 
I can successfully see blob (JPG images) values that have been inserted into the database.
 
 
However, if I attempt to insert a new image I get this Alpha Five error:
 
Server side error inserting row.
Internal Error - Invalid data index while putting long data.
 
 
Here are some of the details from the ODBC trace:
 
 
alpha5          201c-1f40 ENTER SQLPrepare
  HSTMT               0x027738B8
  UCHAR *             0x1E74B7C0 [      81] "INSERT INTO EMPLOYEE_PICTURES  (EMP_PIC_ID, EMP_ID, EMP_PICTURE) VALUES (?, ?, ?)"
  SDWORD                    81
 
alpha5          201c-1f40 EXIT  SQLPrepare  with return code 0 (SQL_SUCCESS)
  HSTMT               0x027738B8
  UCHAR *             0x1E74B7C0 [      81] "INSERT INTO EMPLOYEE_PICTURES  (EMP_PIC_ID, EMP_ID, EMP_PICTURE) VALUES (?, ?, ?)"
  SDWORD                    81
 
alpha5          201c-1f40 ENTER SQLBindParameter
  HSTMT               0x027738B8
  UWORD                        1
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                        8 <SQL_C_DOUBLE>
  SWORD                        8 <SQL_DOUBLE>
  SQLULEN                    8
  SWORD                        0
  PTR                0x1E753A20
  SQLLEN                     8
  SQLLEN *            0x1E753A28
 
alpha5          201c-1f40 EXIT  SQLBindParameter  with return code 0 (SQL_SUCCESS)
  HSTMT               0x027738B8
  UWORD                        1
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                        8 <SQL_C_DOUBLE>
  SWORD                        8 <SQL_DOUBLE>
  SQLULEN                    8
  SWORD                        0
  PTR                0x1E753A20
  SQLLEN                     8
  SQLLEN *            0x1E753A28 (8)
 
alpha5          201c-1f40 ENTER SQLBindParameter
  HSTMT               0x027738B8
  UWORD                        2
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                        8 <SQL_C_DOUBLE>
  SWORD                        8 <SQL_DOUBLE>
  SQLULEN                    8
  SWORD                        0
  PTR                0x1E753A2C
  SQLLEN                     8
  SQLLEN *            0x1E753A34
 
alpha5          201c-1f40 EXIT  SQLBindParameter  with return code 0 (SQL_SUCCESS)
  HSTMT               0x027738B8
  UWORD                        2
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                        8 <SQL_C_DOUBLE>
  SWORD                        8 <SQL_DOUBLE>
  SQLULEN                    8
  SWORD                        0
  PTR                0x1E753A2C
  SQLLEN                     8
  SQLLEN *            0x1E753A34 (8)
 
alpha5          201c-1f40 ENTER SQLBindParameter
  HSTMT               0x027738B8
  UWORD                        3
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                       -2 <SQL_C_BINARY>
  SWORD                       -4 <SQL_LONGVARBINARY>
  SQLULEN                23588
  SWORD                        0
  PTR                0x1E753A38
  SQLLEN                 47178
  SQLLEN *            0x1E753A40
 
alpha5          201c-1f40 EXIT  SQLBindParameter  with return code 0 (SQL_SUCCESS)
  HSTMT               0x027738B8
  UWORD                        3
  SWORD                        1 <SQL_PARAM_INPUT>
  SWORD                       -2 <SQL_C_BINARY>
  SWORD                       -4 <SQL_LONGVARBINARY>
  SQLULEN                23588
  SWORD                        0
  PTR                0x1E753A38
  SQLLEN                 47178
  SQLLEN *            0x1E753A40 (-100)
 
alpha5          201c-1f40 ENTER SQLExecute
  HSTMT               0x027738B8
 
alpha5          201c-1f40 EXIT  SQLExecute  with return code 99 (SQL_NEED_DATA)
  HSTMT               0x027738B8
 
alpha5          201c-1f40 ENTER SQLParamData
  HSTMT               0x027738B8
  PTR *              0x00CD62DC
 
alpha5          201c-1f40 EXIT  SQLParamData  with return code 99 (SQL_NEED_DATA)
  HSTMT               0x027738B8
  PTR *              0x00CD62DC
 
alpha5          201c-1f40 ENTER SQLPutData
  HSTMT               0x027738B8
  PTR                0x1E7D52D0
  SQLLEN                 23587
 
Is this a problem with the ODBC driver?
 
Thanks, Bob
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Firebird-odbc-devel mailing list
Firebird-odbc-devel@...
https://lists.sourceforge.net/lists/listinfo/firebird-odbc-devel
André Knappstein | 7 Mar 2013 12:15
Picon

Solution for 32Bit/64Bit mixed environment

I know that this is problem caused by very bad design by MS.
But maybe someone already found a workaround and would share it here.

I  need  to call the same DSN sometimes from a 32-Bit application, and
sometimes  from  a  64-Bit  application. So I need a DSN with the same
name  once  created  with  the  32-Bit  ODBCAD32.exe and once with the
64-Bit ODBCAD32.exe.

One  therefore has to reference the 32-Bit version of FBClient.dll and
the other references the 64-Bit version.
No  problem  for  System DSNs.
The different settings do not mess with each other.

For  User-DSNs  though, you must decide whether a DSN is either 32- or
64-Bit  because  no matter which version of ODBCAD32.exe you are using
to  create/manage  the DSNs, they will both be stored in the very same
registry  key,  which  basically  means  that  any  setting  in either
ODBCAD32.exe will overwrite the other, and therefore the last selected
version of FBClient.dll will win.

Sounds  like  there is no solution for this, and I can't even start to
imagine which idiot in Redmond let that pass. But, anyway, did anybody
of  you  stumble  across  some workaround, maybe involving some system
hacks?

I  frankly  do  not  even know where all the places are where some 3rd
party tool is making a call to a User-DSN. Users even can create their
own  Excel/LibreOffice/CrystalReport  connections based on an existing
User-DSN.

thanks,
André

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
Werner F. Bruhin | 5 Mar 2013 13:19
Picon
Favicon

ODBC regsvr32 LoadLibrary not found

Hi,

I have an InnoSetup installer which installs besides by application also 
the FB ODBC driver, in case users want to access the db from e.g. 
LibreOffice.

On some machines I get the following error when the installer runs:

LoadLibrary(c:\windows\system32\odbcfb.dll -s) failed to load

On MS site a possible reason could be that a dependency is not present.

But I doubt that is the reason as when I run the following manually, it 
works.

regsvr32 c:\windows\system32\odbcfb.dll

Any pointers what might be wrong?

Werner

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
bjoern.reimer | 28 Feb 2013 09:41
Picon
Favicon

ODBC and Bigint in MS Access

Hello,

  we  stepped  over  a  small  problem with current odbc driver and MS
  Access:

  BIGINT  (in  our  Db  primary keys) fields are presented as text 255
  fields in access.

  Trying  another  client  via odbc they are presented as flaot fields
  wich  seems to be a littel bit better than text 255 but not what I'd
  expect.

  Can  anybody give me the info where there could be a problem and how
  to get bigint as a number to access via odbc?

  There  must be  a  problem  in  Access  as I found people mentioning
  similar problems with MS SQL Server and Access.

    Björn

--

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Jojakim | 27 Feb 2013 15:10
Picon

unable to login to tracker.firebirdsql.org

Hello,
In the past, I could login and use the firebird tracker w/o problem.
Today I wanted to login again, and the system told me, that I may not login
(no permission). Thought I used the wrong pwd, tried others, w/o success.
Clicked on "forgot pwd", entered email, and then the system showed an
exception message. Did not receive any email, tried again, now the system
tells me, user does not exist. Checked the buglist of the ODBC project where
I reported bugs recently: my clear name isn't shown any more, instead just my
login name.
Is there someone who can have a look on this please?
Thanks.
--
Joja

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Olaf Kluge | 27 Feb 2013 10:15
Picon

ODBC performance Firebird and Windows 7 X64

Hello,

 

I use firebird 2.1 cs and the 32 Bit newest ODBC Driver on Windows 7 x64. If I link my tables in ms access to my local database, it takes 4 seconds to open a query. Now If I link the tables to our Server (same fb version running), it takes one minute to open the same query. On Windows XP with the same configuration It takes only 5 seconds.

 

What can I do? Perhaps it is possible to change some options on my odbc driver? What is safe thread? Some identifiers options?

 

Thank you very much for hints and tips.

 

Best regards.

 

Olaf

 

 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Firebird-odbc-devel mailing list
Firebird-odbc-devel@...
https://lists.sourceforge.net/lists/listinfo/firebird-odbc-devel
Peter Stalpers | 26 Feb 2013 15:21
Picon

Connection failure

I'm still a newby with firebird

After creating an ODBC-link between a firebird db and Access I linked the Firebird tables to an access-application.
When I try to open a table I get the message: [ODBC Firebird Driver][Firebird]no permission for
read/select access to column.......(#-551)

I have got this message on each table I'll try to open.

How can I set the rights to read these files????

Met vriendelike groet,

Peter Stalpers

Systeem/Netwerkbeheer TweeSteden ziekenhuis / Stafmedewerker Informatisering Ziekenhuis Apotheek Midden-Brabant
Tel. + 31 (0) 13 46 55 692
PStalpers@...

============================
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de
geadresseerde(n) en zij die van de geadresseerde(n) toestemming hebben dit bericht te lezen. Gebruik
door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan
vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht. Het
TweeSteden ziekenhuis is niet aansprakelijk voor schade ten gevolge van het gebruik van elektronische
middelen van communicatie, daaronder begrepen - maar niet beperkt tot - schade ten gevolge van niet
aflevering of vertraging bij de aflevering van elektronische berichten, onderschepping of
manipulatie van elektronische berichten door derden of door programmatuur/apparatuur gebruikt voor
elektronische communica
 tie en overbrenging van virussen en andere kwaadaardige programmatuur.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Peter Stalpers | 22 Feb 2013 15:51
Picon

What do I do wrong with this ODBC-connection

Hi,
 
I'll try to create a ODBC-connection to a Firebird 1.5 db using these credentials but it didn't work. See att.
 
The datasourcename: dsn is: triakel Test
Location database is: win-triakel01:TestDbTriakel:/Triakel_Test.fdb
User is present in security.fdb
Location security-database on this server is: sec = C:\Program Files (x86)\Firebird\Firebird_1_5\security.fdb
OS server = W2K8 R2 64 bit
OS Client for ODBC-connection = Win Xp
 
What do I wrong??
 
Please help me.
 
Regards,
 
Peter
 
 
Met vriendelijke groet,

Peter Stalpers

Stafmedewerker Informatisering Ziekenhuis Apotheek Midden-Brabant
Tel. + 31 (0) 13 46 55 692
PStalpers-Vb2TCoiMdgY@public.gmane.org
www.zamb.nl

========================================================
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming hebben dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht. Het TweeSteden ziekenhuis is niet aansprakelijk voor schade ten gevolge van het gebruik van elektronische middelen van communicatie, daaronder begrepen - maar niet beperkt tot - schade ten gevolge van niet aflevering of vertraging bij de aflevering van elektronische berichten, onderschepping of manipulatie van elektronische berichten door derden of door programmatuur/apparatuur gebruikt voor elektronische communicatie en overbrenging van virussen en andere kwaadaardige programmatuur.

 

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Peter Stalpers
TEL;WORK:013 4655692
ORG:;Apotheek 
TEL;PREF;FAX:013 4672819
EMAIL;WORK;PREF;NGW:pstalpers@...
N:Stalpers;Peter
TITLE:Stafmedewerker
END:VCARD

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Firebird-odbc-devel mailing list
Firebird-odbc-devel@...
https://lists.sourceforge.net/lists/listinfo/firebird-odbc-devel

Gmane