Win7 x64 / Office 2010 - ODBC connect error

GRoston

Member
Power User
VIP
Local time
12:09 PM
Messages
381
I have a MS Word application which uses a DSN-less connection to access a remote SQL database and which runs properly under a 32 bit OS. However, on my Windows 7 x64 systems with Office 2010 (32 bit) I get the following error when running the application:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

I have done a bunch of searching, and have found a number of suggested solutions. The one which seems most likely to work is to install the Office System Driver Data Connectivity Components 2010.

Is this the best approach for solving the problem? If so, should I install the 32 or 64 bit version? If this is not the best approach, what would you suggest?

Thank you.
 

My Computer My Computer

At a glance

Windows 7 x64 ProCore i7 860 @ 3.8 GHz16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)Sapphire Vapor-X 100283VXL Radeon HD 5770
Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK
i don't try yet Ms office 2010.
but i think the work is same with the other Ms.office
i'm also run the excel and connected to the dbase using ODBC.
did you already add the dbase source in it?
 

My Computer My Computer

At a glance

windows 7Phenom II AMD Dragon 3.5GhzDDR3 4GBATI Radeon 512Mb
Computer Manufacturer/Model Number
built up
OS
windows 7
CPU
Phenom II AMD Dragon 3.5Ghz
Memory
DDR3 4GB
Graphics Card(s)
ATI Radeon 512Mb
Monitor(s) Displays
HP L1506
Screen Resolution
1152 x 864
Hard Drives
WDC 1 TB SATA-II Green Power
Keyboard
HP wireless keyboard
Mouse
HP Optic
Internet Speed
1GB
I have learned more. Sadly, the problem does not seem to be limited to my Win7 x64 machine. I have tried this application on two different XP machine and have received the exact same error message. This is particularly baffling since the exact same application ran perfectly 12 months ago.

Here is the relevant VBA code:
PHP:
Dim cn As ADODB.Connection 
Dim cmd As ADODB.Command 
Dim rs As ADODB.Recordset 
 
Set cn = New ADODB.Connection 
cn.ConnectionString = "Driver={SQL Native Client};Server=<ip_address>;Database=<db>;Uid=<uid>;Pwd=<pwd>" 
cn.CursorLocation = adUseClient 
cn.Open 
 
Set cmd = New ADODB.Command 
Set cmd.ActiveConnection = cn 
cmd.CommandText = "sp_name" 
cmd.CommandType = adCmdStoredProc 
cmd.Parameters.Append cmd.CreateParameter("@Param", adChar, adParamInput, 25, "Value") 
Set rs = cmd.Execute
I have also determined that the problem occurs before any data is transmitted to the remote server.

Since the application did not change - the date stamp on the .doc file is last August - I do not know what to look for in order to resolve the problem. Can anyone please suggest an approach?
 

My Computer My Computer

At a glance

Windows 7 x64 ProCore i7 860 @ 3.8 GHz16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)Sapphire Vapor-X 100283VXL Radeon HD 5770
Computer type
PC/Desktop
OS
Windows 7 x64 Pro
CPU
Core i7 860 @ 3.8 GHz
Motherboard
MSI P55-GD80
Memory
16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
Graphics Card(s)
Sapphire Vapor-X 100283VXL Radeon HD 5770
Monitor(s) Displays
NEC LCD3090WQXi-BK
why don't u try the office 2007 or use the office 2003??
 

My Computer My Computer

At a glance

windows 7Phenom II AMD Dragon 3.5GhzDDR3 4GBATI Radeon 512Mb
Computer Manufacturer/Model Number
built up
OS
windows 7
CPU
Phenom II AMD Dragon 3.5Ghz
Memory
DDR3 4GB
Graphics Card(s)
ATI Radeon 512Mb
Monitor(s) Displays
HP L1506
Screen Resolution
1152 x 864
Hard Drives
WDC 1 TB SATA-II Green Power
Keyboard
HP wireless keyboard
Mouse
HP Optic
Internet Speed
1GB
Hi there
I'm trying a similar thing but using Office 2007 -- works perfectly and I'm on W7 X64

My application is an EXCEL spreadsheet that retrieves data from a remote SQL DB and doesn't seem to have any probs.

I've got Office 2010 on a Virtual W7 32 bit machine so I'll try that later --but of course running a Virtual Machine could add another layer of complexity into the mix.

Incidentally on a VIRTUAL W2003 server machine with Office 2007 the EXCEL application runs just fine so I suspect the deal is probably with Office 2010.

Did you use the ODBC software that the remote DB requires -- for example can you just do a basic Connect to the remote DB. in command mode and run any SQL queries.

This should tell you if you've got a problem with OBDC or not.

Another but possibly silly question -- has the remote DB changed its authentication procedures or updated ITS own software. If it has you might also need to apply some fixes on your front end.

Cheers
jimbo
 

My Computer My Computer

At a glance

Linux CENTOS 7 / various Windows OS'es and se...Intel i7 Intel i58GB, 16GBOn Motherboard
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
i'm usually use Ms.office 2003 and 2007 too. and until now didn't have any issue.
 
Last edited:

My Computer My Computer

At a glance

windows 7Phenom II AMD Dragon 3.5GhzDDR3 4GBATI Radeon 512Mb
Computer Manufacturer/Model Number
built up
OS
windows 7
CPU
Phenom II AMD Dragon 3.5Ghz
Memory
DDR3 4GB
Graphics Card(s)
ATI Radeon 512Mb
Monitor(s) Displays
HP L1506
Screen Resolution
1152 x 864
Hard Drives
WDC 1 TB SATA-II Green Power
Keyboard
HP wireless keyboard
Mouse
HP Optic
Internet Speed
1GB
Hi there
just tried a Virtual machine (W7 X86) running Office 2010.

No problem --EXCEL application retrieves data perfectly.

I suspect that the DB software has changed so you need to update your front end accordingly.

There shouldn't be any problems with the OBDC -- perfectly standard protocol.bo

If you are running a JAVA or VB script relying on the .NET interface you could be in trouble as this has considerably changed in W7 even from VISTA.

Cheers
jimb
 

My Computer My Computer

At a glance

Linux CENTOS 7 / various Windows OS'es and se...Intel i7 Intel i58GB, 16GBOn Motherboard
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
  • Like
Reactions: ryo
The default 64bit ODBC is not visible to 32bit applications on a x64 Windows.

For 32bit applications running on a 64bit Windows OS, use ODBC located at:
C:\Windows\SysWOW64\odbcad32.exe

You can add a shortcut to it to your Control Panel.

The 64bit & 32bit ODBC apps look exactly the same, but your DSN entries will not show in both, unless you enter them in both.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel® Core™2 Duo E84006GbGigabyte GeForce 9500 GT
Computer Manufacturer/Model Number
DIY
OS
Windows 7 Professional x64
CPU
Intel® Core™2 Duo E8400
Motherboard
Intel® DQ35JO
Memory
6Gb
Graphics Card(s)
Gigabyte GeForce 9500 GT
Sound Card
Onboard
Monitor(s) Displays
LG 19inch wide
Hard Drives
Seagate 500Gb
Cooling
not enough yet
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft Wireless Mobile Mouse 4000
Internet Speed
:(
Hi there
I forgot to mention that -- thanks for pointing it out.

Note that the MS office 2010 I've been using is the 32 bit version.

Cheers
jimbo
 

My Computer My Computer

At a glance

Linux CENTOS 7 / various Windows OS'es and se...Intel i7 Intel i58GB, 16GBOn Motherboard
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
Back
Top