Solved

DSN Connection Successful but Cannot Query from Excel

Posted on 2011-09-09
4
259 Views
Last Modified: 2012-05-12
We have a large network with many different vlans, and have around 20 databases on various servers. One of these servers is on a subnet that is not on a vlan, but is interfaced to one of our access vlans by a cheap Netgear soho router.

It is necessary to query from a number of databases on this server, so I put the server in the DMZ zone on the soho router.

I can successfully establish a connection when setting up a DSN from a computer on our access vlan, but cannot establish a connection via an Excel ODBC connection.

I receive error 67 and 17, server not found or access denied.

Any ideas why I am unable to connect only through Excel?

0
Comment
Question by:Tercestisi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 36510866
What connection string are you using?
0
 

Author Comment

by:Tercestisi
ID: 36511453
I am unsure of how to enter in a connection string into Excel; I know how to edit it once the connection has been made within Excel, but not how to simply enter one in without going through the data connection wizard.

This is what I would use:

Provider=SQLOLEDB.1;Password=******;Persist Security Info=True;User ID=sqluser;Initial Catalog=DC2_0;Data Source=DATABASE;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=MP7CN-MP3MM;Use Encryption for Data=False;Tag with column collation when possible=False

I have tried to create a file based DSN connection as well and open that from within Excel, but upon entering the username and password I get the same error; the connection tests fine under data sources within the OS though.
0
 

Accepted Solution

by:
Tercestisi earned 0 total points
ID: 36513016
Got it figured out; dropped of the instance name of the database and was able to connect.
0
 

Author Closing Comment

by:Tercestisi
ID: 36534758
Dropped instance name.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question