• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

Connecting with Visual Basic 6.0

I installed the Sybase Client 12.X and I'm trying to connect with VB6.0.  The current login string that I'm using is as followed:

strLogin = "Provider=Sybase ASE OLE DB Provider;" & _
"Srvr=Server,5000;" & _
"Catalog=DB;" & _
"User Id=user;" & _

But I keep getting "Invalid server name was specified."  I determined that it's coming from the Provider, it has to be because every other command that I remove comes down to the Provider generating it.  I've been having so much difficulty finding a good Sybase driver, without breaking my neck looking all over the country side.  I am wondering, maybe if the drivers that came with WinSQL would work if called apon?  I have tried it, but I got some odd error, that I was not sure about.

Please, I must get this working ASAP.
  • 2
1 Solution
I think the problem you are having is due to the fact that your server is named "Server". Other then that it looks fine to me. (http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForSybaseAdaptiveServerEnterprise)

moorer2kAuthor Commented:
The server of course, is change correctly.  WinSQL tool connects ust fine, and I'm using those same perameters.
>The server of course, is change correctly

I am not sure what you mean here.

> WinSQL tool connects ust fine, and I'm using those same perameters.

Maybe so, but the driver you are using with the VB app may not be ok with it, especially if it is a reserved keyword.
Go to this website to get the correct connection string: http://www.connectionstrings.com/ you'll be able to find what you need to connect to sybase

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now