Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Unable to Connect to IB 6.5 using Delphi 2005 (.NET)

Unable to Connect to IB 6.5 using Delphi 2005 (.NET)

Unable to Connect to IB 6.5 using Delphi 2005 (.NET)

I am looking at the examples that come with Delphi 2005 and am copying the connection string correctly.  I have an ASP.NET app with a BDPConnection component on a web form.  A simple Username and Password textboxes with a button to connect.  

The error I get is :

Connection open failed. Your user name and password are not defined. Ask your database administrator to set up an InterBase login.

I am using the default "SYSDBA" and "MASTERKEY" values so the login should be valid.

Here is the code:

  C_CONNECTSTR = 'assembly=Borland.Data.Interbase, Version=, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b;vendorclient=gds32.dll;database=\\InterbaseData\\master.gdb;provider=Interbase;';

C_CONNECTOPT = 'waitonlocks=False;transaction isolation=ReadCommitted;commitretain=False;sqldialect=1;servercharset=;rolename=myrole';

function TTechNotesMain.ConnectDB: Boolean;
 Result := TRUE;

  if (BdpConnection.State <> ConnectionState.Open) then

    BdpConnection.ConnectionString  := C_CONNECTSTR + 'username=' + txtLogin.Text + ';' +'password=' + txtPassword.Text;

    BdpConnection.ConnectionOptions := C_CONNECTOPT;  

  Result := (BdpConnection.State = ConnectionState.Open);


Can someone please point out why this is not working?  Thank you


RE: Unable to Connect to IB 6.5 using Delphi 2005 (.NET)

I discovered that the problem was the case sensitivity of the password.  It needs to be all lower case.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close