Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...your web site's great! I've been using this system for almost a year now and find it really, really helpful. The people have been helpful in answering just about any question you post in the forums..."

Geography

Where in the world do Tek-Tips members come from?

Cannot Connect to SQL Server 2008 Express From VFP 9 Program (exe)Helpful Member!(2) 

carolx (Programmer)
15 Apr 12 15:33
I installed SQL Server 2008 Express R2 on a computer with windows 7 Home Premium OS. Created the DSN

(ODBC). The connection is OK when you test it. When I try to access the database using a VFP 9 program

(exe) on the same computer I get the message SQL Server does not exist or access denied.

I get the same message when I turn off UAC and the firewall.

All the protocols for SQL Server 2008 Express R2 are enabled.

Both SQL Server and SQL Server Browser services are started during the run.

The connection string is sqlstringconnect([dsn=Mortgage;trusted_connection=yes]). It works OK with SQL

Server on Windows XP.
markros (Programmer)
15 Apr 12 15:54
Did you create this DSN using SysWow64/obdcad.exe ? You can only use 32 bit version of ODBC with VFP.

PluralSight Learning Library

carolx (Programmer)
15 Apr 12 16:09
I used the utility in Windows 7. Any idea on how to create the 32 bit version in windows 7. I had included it in the installation package for VFP 9, but unfortunately it was not created. I had to do it manually.
Helpful Member!  markros (Programmer)
15 Apr 12 23:24
If your Windows 7 version is 64 bit, you need to run odbcad32.exe from c:\Windows\SysWow64 folder.

PluralSight Learning Library

Helpful Member!  OlafDoschke (Programmer)
16 Apr 12 3:34
Maybe you'll see your dsn, once you open c:\windows\SysWow64\odbcad32.exe

You of course need the 32bit ODBC drivers installed.

Bye, Olaf.
carolx (Programmer)
16 Apr 12 14:55
Thank you guys. The DSN from the installation package showed up when I ran odbcad32.exe. I can connect now.  

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