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.


How do I connect SQLbase 8 - Visual Basic 6 with OLEDB?

How do I connect SQLbase 8 - Visual Basic 6 with OLEDB?

Please I need to know the steps to make this connection.
I´m working with SQLBase 8 and VIsual Basic 6.



RE: How do I connect SQLbase 8 - Visual Basic 6 with OLEDB?

make sure you got SQLBASEOLEDB 1.0 in your reference, then type this code :
    Dim objSQLBaseServer As SQLBASEOLEDBServer
    Set objSQLBaseServer = New SQLBASEOLEDBServer
    Dim strServer As String
    Dim strPwd As String
    strServer = "SERVER1"
    strPwd = ""
    objSQLBaseServer.ConnectServer strServer, strPwd
    MsgBox "CONNECTED ON " & strServer & " w/ SQLBASEOLEDBServer"

RE: How do I connect SQLbase 8 - Visual Basic 6 with OLEDB?

Can anyone tell me if there are any more details to this ?
Im running SQLBase 7.5.1 and VB6 with the connection details specified above, but it doesnt connect. I have the SQLOLEDB 1.0 Reference set in VB and Im using my own server and password which work fine in the Windows ODBC Administrator test applet. The error I am getting is "Run-time error -2147467259(8000040005) Method 'ConnectServer' of object 'ISQLBASEOLEDBServer' failed." What else can I check?

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!


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