Solved

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

Posted on 2011-09-08
6
252 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

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
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
Comment Utility
I do not know the server name.  That is what I am trying to get know the DSN.
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
Comment Utility

  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
Comment Utility
found the solution another way.

this solution helped but was not it.
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
<<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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

744 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