Solved

DSN Connection Successful but Cannot Query from Excel

Posted on 2011-09-09
4
258 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
  • 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now