Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 11th, 2003, 01:22 PM
Frost Frost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 21 Frost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
Connecting to Firebird with ODBC

I've trying to connect to a Firebird database with an ODBC connection with a Gemni driver.

But when I try and setup the ODBC connection, I keep getting an error that say 'connection failed, cannot find library'.

Has anyone set this up, and what am I missing. I really need to get this working.

Thanks in advance,

kb

Reply With Quote
  #2  
Old December 11th, 2003, 04:43 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,815 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 14 m 37 sec
Reputation Power: 278
Probably you miss gds32.dll the Interbase/Firebird client library.
Otherwise check the ODBC driver available from www.ibphoenix.com

Reply With Quote
  #3  
Old December 12th, 2003, 02:56 AM
badukist badukist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 62 badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 3 m 18 sec
Reputation Power: 7
Send a message via Yahoo to badukist
Also I've seen something about a missing msvcp60.dll or something.

Reply With Quote
  #4  
Old December 15th, 2003, 02:22 PM
Frost Frost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 21 Frost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
Exellent, that was what the problem was. I was missing the gds32.dll file. Thank you very much

I've managed to get the ODBC connection to work, and I've setup a linked server in SQL.

I can see the tables and views that are within the database. But, I cannot seem to query on them. It doesn't recongnise the table name as an object.

In the past when I have used linked servers in SQL, when querying a table I had to specify the linked server name, the database name, the schema, and finally the name of the table.

In this case, I know the linked server name, the name of the table I'm hitting, but there is no schema associated with the table and the GDB file for the database can also not be seen. There is a space in the database name which I don't like as well.

Any ideas on how to query the information??

Reply With Quote
  #5  
Old January 5th, 2004, 04:57 PM
Frost Frost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 21 Frost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
Help

Can anyone help me with the above problem? I know there has to be someone out there that is linking to a firebird database with an ODBC connection.

Reply With Quote
  #6  
Old January 6th, 2004, 02:12 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,815 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 14 m 37 sec
Reputation Power: 278
Did you check Gemini's bug database?

Reply With Quote
  #7  
Old January 6th, 2004, 06:44 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Do you use case in your table names?

eg: Table1 instead of TABLE1

It might be that you created your objects case sensitive:

CREATE TABLE "Table1"

This means that you need to use the double quotes always. A pain.
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com

Reply With Quote
  #8  
Old January 6th, 2004, 10:47 AM
Frost Frost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 21 Frost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
Hmm, I'm not sure. I'll try your suggestions. I'm really stuck. I can parse the query and it works, it's just when I try and run it, it fails.

Here's the query:

Select *
From CAMALOT."TEST DATA.GDB".TAXPASSOFF

Which returns an invalid object name error.

Reply With Quote
  #9  
Old January 6th, 2004, 10:56 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Quote:
Select *
From CAMALOT."TEST DATA.GDB".TAXPASSOFF

What is "CAMALOT"?

Reply With Quote
  #10  
Old January 6th, 2004, 11:31 AM
goreXP's Avatar
goreXP goreXP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bucharest
Posts: 72 goreXP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 10 sec
Reputation Power: 6
Send a message via MSN to goreXP Send a message via Yahoo to goreXP
you can't cross query two databases... if CAMALOT is the server and TEST DATA.GDB is the database and TAXPASSOFF is a table you should connect to database and then:
SELECT * FROM TAXPASSOFF

Reply With Quote
  #11  
Old January 6th, 2004, 11:33 AM
goreXP's Avatar
goreXP goreXP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bucharest
Posts: 72 goreXP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 10 sec
Reputation Power: 6
Send a message via MSN to goreXP Send a message via Yahoo to goreXP
Thumbs up

in my opinion the ODBC driver available from www.ibphoenix.com in a good choise

Last edited by goreXP : January 7th, 2004 at 04:27 AM.

Reply With Quote
  #12  
Old January 6th, 2004, 05:32 PM
Frost Frost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 21 Frost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 9 sec
Reputation Power: 0
You can cross query from two different servers normally. I do it now in SQL with other databases. The only difference with those is that they are both SQL databases.

Appararently it's supposed to be possible with this driver, but I'm not quite sure why it's not working. I've looked at the tips and tricks for the driver, and turned on the Case-Insensitive feature as well, but it made no difference.

Reply With Quote
  #13  
Old January 7th, 2004, 01:57 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
Frost,

I assume that you mean MS SQL Server databases if you say "SQL databases" and that you mean "from within MS SQL Server" if you say "in SQL".

This is very confusing.

SQL is a query language. MS SQL Server is a product.

If you created a MS SQL Server "linked server" entry to a Firebird ODBC datasource, does it help if you use the following:

Select *
From CAMALOT.TAXPASSOFF

(assuming that "CAMALOT" is the linked server, and "TAXPASSOFF" isn't created case sensitive)

Reply With Quote
  #14  
Old January 7th, 2004, 04:34 AM
goreXP's Avatar
goreXP goreXP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bucharest
Posts: 72 goreXP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 10 sec
Reputation Power: 6
Send a message via MSN to goreXP Send a message via Yahoo to goreXP
now I'm confused

Quote:
Originally posted by upscene
If you created a MS SQL Server "linked server" entry to a Firebird ODBC datasource, does it help if you use the following:

Select *
From CAMALOT.TAXPASSOFF

(assuming that "CAMALOT" is the linked server, and "TAXPASSOFF" isn't created case sensitive)


what is "linked server" entry to a Firebird ODBC datasource ?
__________________
Romania it's a beautiful country ... too bad that it's populated with ... peoples!

Reply With Quote
  #15  
Old January 7th, 2004, 04:36 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
A "linked server" is, as far as I can remember and without trying, a remote/outside datasource definition in MS SQL Server.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Connecting to Firebird with ODBC


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread: