Solved

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

Posted on 2011-09-08
6
254 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Trying to open FORM in specific record !! 6 44
Access Update Query 1 20
SQL Group on First occurrence 9 24
My SQL as Backend for Access 3 14
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

776 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