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 November 7th, 2004, 09:07 PM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Linked Server to FireBird DataBase


Hello, I am trying to create a Linked Server from MSSQL Server 2000 to FireBird as part of one of our classes practice.

I downloaded the following version:
  • 16th Jul 2004 Official Windows Setup and Installer For Classic and SuperServer V1.5.1 (.exe) (4.0mb)

And I installed it. Then I downloaded the following ODBC:

Version 1.2
  • 26th Aug 2004 Windows Full Install (.exe) (596k)

Afterwards I tried to create a Linked Server to the employees database included inside the folder of "examples"

Here I include the Provider String I used (I was desperate so I also changed the password from "masterkey" to "none"):

DRIVER={Firebird/InterBase(r) driver};UID=SYSDBA;PWD=none;DBNAME=C:\Firebird\DataBases\TEST.GDB

Could you please help me? I have been playing with the options of the Security Tab and I will always get the same error Message:

Authentication Failed

Thank you in advance!
Attached Images
File Type: gif FireBirdGeneral.gif (24.0 KB, 457 views)
File Type: gif FireBirdSecurity.gif (12.1 KB, 409 views)

Reply With Quote
  #2  
Old November 8th, 2004, 03:41 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
It's very easy:

1.Set up and test a system ODBC datasource pointing to your firebird database (with IBPhoenix's odbc driver)
2. Add a linked server with the following properties (this is an example):
2.0 Choose Microsoft OLE DB provider for ODBC drivers
2.1 Linked server name: "Local Firebird"
2.2 Product name: "Local Firebird"
2.3 Data source: the name of your odbc datasource
2.4 Provider string: "{Firebird/Interbase(r) Driver}"
2.5 Location: "localhost"

(I'm pretty shure that 2.2, 2.4 and maybe 2.5 can be ignored, but I have no time to test)


Don't forget to set auth to connect with sysdba/masterkey or other appropriate Firebird user

Last edited by pabloj : November 8th, 2004 at 03:53 AM.

Reply With Quote
  #3  
Old November 8th, 2004, 05:14 PM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Thanks for your reply! I just tried all your steps and this is what I got... (Maybe I did something wrong)
Attached Images
File Type: gif Step1.gif (32.2 KB, 371 views)
File Type: gif Step2.gif (24.1 KB, 463 views)

Reply With Quote
  #4  
Old November 9th, 2004, 03:09 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
So what? I don't see any error message

Reply With Quote
  #5  
Old November 9th, 2004, 08:10 AM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Ooops... Sorry, I forgot to attach the error image. I am not in my house right now so I can't upload it in this moment... I will attach it when I am in my house.

Anyway, the error says "Authentication Error"

Reply With Quote
  #6  
Old November 9th, 2004, 08:19 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
In my setup I'm using SQLServer's authentication (I'm user "sa") and I set it up to map Local Login "sa" to Remote User "sysdba" with password "masterkey".

Last edited by pabloj : November 9th, 2004 at 08:21 AM.

Reply With Quote
  #7  
Old November 9th, 2004, 11:41 AM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Thanks for the reply... Sadly I have already tried that too and it told me the same...

I don't know which the problem is. I will take a screenshot of my new attempt here in university. What is strange is that I did the same with a gemini driver and it worked... Why?

Shouldn't the given driver work like the one provided by Gemini?

Reply With Quote
  #8  
Old November 9th, 2004, 04:24 PM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Here I attach the error picture...
Attached Images
File Type: gif Error.gif (12.4 KB, 440 views)

Reply With Quote
  #9  
Old November 10th, 2004, 03:04 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Did you use the Microsoft OLE DB provider for ODBC drivers ?

Reply With Quote
  #10  
Old November 10th, 2004, 11:04 AM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Yes, I did. You can check so by opening the first two attachments...

I show there the configuration of the Linked Server.

I wonder if something is wrong with the driver because I can do this using the Gemini driver... (With the same properties... I just changed the provider connection)

Maybe it is a problem with my Provider String? Gemini didn't work until I used the following format:

Database=localhost:C:\FireBird\Test.gdb; SERVER=localhost


In gemini I was missing the Server part of the connection... Could it be the same case in the driver given by IBPhoenix?

Reply With Quote
  #11  
Old November 10th, 2004, 11:15 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,907 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 3 Days 9 h 21 m 6 sec
Reputation Power: 279
I really don't know how to help you, I got mine working fine with the steps I showed you.
What kind of auth do you have in SQLServer it's own or the integrated one?

Reply With Quote
  #12  
Old November 10th, 2004, 05:21 PM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have it on Mixed Mode. (SQL Server and Windows)

Reply With Quote
  #13  
Old November 10th, 2004, 07:40 PM
Tec-Nico Tec-Nico is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 9 Tec-Nico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Ok, I found it... Now I can tell why it didn't work. It had to do with the provider string as I suggested.

I changed the string to:
DRIVER={Firebird/InterBase(r) driver};UID=SYSDBA;PWD=none;DBNAME=localhost:C:\Firebird\DataBases\TEST.GDB


and it worked! As you can see I just had to specify the Server (localhost) in order to get it working (But it shouldn't be that way, should it?)

Thank you pabloj for your time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Linked Server to FireBird DataBase


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump