moorer2k
asked on
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;" & _
"Password=pass"
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.
strLogin = "Provider=Sybase ASE OLE DB Provider;" & _
"Srvr=Server,5000;" & _
"Catalog=DB;" & _
"User Id=user;" & _
"Password=pass"
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>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.
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
ASKER