ODBCDBE and DSN

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

ODBCDBE and DSN

#1 Post by rdonnay »

I am helping a customer with my first VFP conversion project.
Developing the screens turned out to be the easiest part of the project - thanks to eXpress++.

Now I am trying to connect to their SQL Server using the same connection string as the FoxPro application.
The connection fails.

I have connected to SQL Server in other applications with no problem.
This is the first time I have tried to connect via a DSN.
Is anybody out there using ODBCDBE and a DSN?

Examples of my connect string:

DBE=ODBCDBE; DSN=RMS_DSN; UID=RMS5; PWD=; CONNECTTIMEOUT=15;
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DDBCDBE and DSN

#2 Post by Tom »

What about the database name (DBQ)?
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: ODBCDBE and DSN

#3 Post by rdonnay »

The problem is that the server connection is one of the parameters that is passed to the program.
I'm going to have difficulty getting them to change it. It's passed from a VFP program to the Xbase++ program.

I'm going to see if there is a way I can query the DSN and parse it out.

Alaska documentation shows how to use a DSN and I am using it correctly.
The error returned is 5381. I can't find anything about this error except I have seen it before with the ADSDBE.
It happened when using the old ACE client DLLs with the most current ADSDBE.DLL.

I sent a support request to Alaska on this issue. Due to the fact that it is the first VFP conversion project I am hoping they give this some priority.
The eXpress train is coming - and it has more cars.

Post Reply