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
Solved

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

Posted on 2011-09-08
6
256 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
  • 4
  • 2
6 Comments
 
LVL 57
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 57
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 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 57
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

808 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