Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DSN Connection Successful but Cannot Query from Excel

Posted on 2011-09-09
4
Medium Priority
?
262 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

598 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