Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / May 2008

Tip: Looking for answers? Try searching our database.

how to get dsn system information (ip address or name) with vbcode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xquestions - 08 May 2008 02:22 GMT
Is it possible to get the dsn system information from an odbc source using
vbcode.  Example: I have an ODBC connection to a database under by system dsn
tab, and would like to get that using vbcode.

Thanks in advance.
Douglas J. Steele - 08 May 2008 22:11 GMT
ODBC entries are in the registry. System DSNs are under HKLM\SOFTWARE\ODBC,
while User DSNs are under HKCU\SOFTWARE\ODBC.

Do a little speleunking to see what you can get.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> Is it possible to get the dsn system information from an odbc source using
> vbcode.  Example: I have an ODBC connection to a database under by system
> dsn
> tab, and would like to get that using vbcode.
>
> Thanks in advance.
DavidAtCaspian - 10 May 2008 13:01 GMT
If you already have a link in you database, you can get a lot of information
about it from the MSysObjects table.

Set access (temporarily) to view System objects, open the MSysObjects table,
and browse arounf it for a few minutes, and it should become very clear and
extremely easy to find what you want.

MSysObjects can be opened and queried like any oher table from VB.

> Is it possible to get the dsn system information from an odbc source using
> vbcode.  Example: I have an ODBC connection to a database under by system dsn
> tab, and would like to get that using vbcode.
>
> Thanks in advance.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.