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

x
?
Solved

odbc dsn - how do I found out the datasource ( the ip address )

Posted on 2011-09-08
6
Medium Priority
?
262 Views
Last Modified: 2012-05-12
I have an ms access program that use odbc to link to a sqlbase database.

In the ODBC Data Source Administrator, under system DSN, i could see the dsn name
and the driver it using.

However I would like to more information regarding the DSN such as the machine
it is pointing to or any other info.
0
Comment
Question by:phiadmin
[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
  • 4
  • 2
6 Comments
 
LVL 58
ID: 36505836
Look at the server name.  Drop down to a command prompt and do:

 PING  <server name>

 and you'll have the IP.

Jim.
0
 

Author Comment

by:phiadmin
ID: 36506026
I do not know the server name.  That is what I am trying to get know the DSN.
0
 
LVL 58
ID: 36509931
Here's how a ODBC connection works; at the point of making the connection, you need the server name, database name, and possibly a user name and password.  There may be other things as well that can be used, but those are the basics.

 That is supplied in a connection string, which may or may not reference a DSN.  If it does, information is first read out of the DSN.  Then anything in the connection string is applied.  Then a connection is attempted.  If anything is lacking, your prompted for it.

  Here's an example of a connection string:

Driver =SQLBaseODBC; ServerName =myServerAddress; Database =myDataBase; LogonID =myUsername; Password =myPassword;

  This one doesn't point to a DSN.

  So either the server name is in the DSN, or it's in the connection string in the application your using.  I'm assuming you have hit the "configure" button with the DSN selected and are not finding the server name in any of the configuration screens, which means that the server name is embedded in the connection string.

Jim.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 750 total points
ID: 36509946

  BTW, if you can open the DB with Excel or MS Query using the DSN alone, then the server name is in the DSN somewhere and your just not spotting it.

Jim.
0
 

Author Closing Comment

by:phiadmin
ID: 36599780
found the solution another way.

this solution helped but was not it.
0
 
LVL 58
ID: 36599984
<<found the solution another way.

this solution helped but was not it. >>

  You should have posted that, accepted your own comment as answer and then gave me an assist if you felt that I helped you get there.

  Otherwise, I don't deserve the accepted answer and a B grade because you never returned to the question and asked for more direction.

Jim.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

636 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