Sign Up |  Live StatsLive Stats    Articles 34,880| Comments 154,861| Members 17,230, Newest IronSingh25| Online 314
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

 
 
  
  
Sikh Philosophy Network » Members Lounge » Information Technology » Do I have the right DSN for a linked table?

Do I have the right DSN for a linked table?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 25 USD (6%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Read only - linked table dejaqhsa Information Technology 3 28-Jul-2006 08:36 AM
Linked Table Manager Anne Information Technology 4 28-Jul-2006 08:28 AM
Update linked table Peter Neumaier Information Technology 12 28-Jul-2006 08:10 AM
vbscript linked table David Shorthouse Information Technology 1 10-Nov-2005 21:09 PM
source for the linked table Kanan Information Technology 1 08-Nov-2005 12:53 PM


Tags
right, dsn, linked, table
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:18 AM
Dennis's Avatar Dennis
Guest
 
Posts: n/a
   
   
Do I have the right DSN for a linked table?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Here's the situation (Access 2002). Many of my agency's applications use
linked tables (to SQL tables). Is there a way that I can "test" to see, table
by table, whether or not a user has the correct DSN/ODBC connection(s) to
access the table(s)?

What I want to do is spin through each table, checking to see if it's
accessible. If not, I want to generate a MsgBox, saying something like:

"You do not currently have the correct DSN setup for table 'myTable'. Please
contact the Helpdesk for assistance."

I'd rather do that than have to trap an error in a critical routine
somewhere else in the application. I can run this module right at startup,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11060-do-i-have-right-dsn-linked.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
and let a (new?) user know that they need something setup before they can run
the application.

Any ideas would be MOST appreciated.

Thanks!!



 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:18 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Do I have the right DSN for a linked table?

Look at the Connect property of the table. The DSN name will be contained as
part of it.

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


"Dennis" wrote in message
news:C3A71FE4-1E92-477C-BB73-9905C47CE01F@microsoft.com...
> Here's the situation (Access 2002). Many of my agency's applications use
> linked tables (to SQL tables). Is there a way that I can "test" to see,

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
table
> by table, whether or not a user has the correct DSN/ODBC connection(s) to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> access the table(s)?
>
> What I want to do is spin through each table, checking to see if it's
> accessible. If not, I want to generate a MsgBox, saying something like:
>
> "You do not currently have the correct DSN setup for table 'myTable'.

Please
> contact the Helpdesk for assistance."
>
> I'd rather do that than have to trap an error in a critical routine
> somewhere else in the application. I can run this module right at startup,
> and let a (new?) user know that they need something setup before they can

run
> the application.
>
> Any ideas would be MOST appreciated.
>
> Thanks!!



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:18 AM
Dennis's Avatar Dennis
Guest
 
Posts: n/a
   
   
Re: Do I have the right DSN for a linked table?

Okay. But how do I *use* that? I understand that I can view the DSN name, but
how do I check to see if the user has that one defined on his PC?

"Douglas J Steele" wrote:

> Look at the Connect property of the table. The DSN name will be contained as
> part of it.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Dennis" wrote in message
> news:C3A71FE4-1E92-477C-BB73-9905C47CE01F@microsoft.com...
> > Here's the situation (Access 2002). Many of my agency's applications use
> > linked tables (to SQL tables). Is there a way that I can "test" to see,

> table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> > by table, whether or not a user has the correct DSN/ODBC connection(s) to
> > access the table(s)?
> >
> > What I want to do is spin through each table, checking to see if it's
> > accessible. If not, I want to generate a MsgBox, saying something like:
> >
> > "You do not currently have the correct DSN setup for table 'myTable'.

> Please
> > contact the Helpdesk for assistance."
> >
> > I'd rather do that than have to trap an error in a critical routine
> > somewhere else in the application. I can run this module right at startup,
> > and let a (new?) user know that they need something setup before they can

> run
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> > the application.
> >
> > Any ideas would be MOST appreciated.
> >
> > Thanks!!

>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:18 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Do I have the right DSN for a linked table?

Sorry, I thought you were wanting to check that they were linked using the
correct DSN.

DSN information is simply stored in the registry.

User DSNs are under HKCU\Software\ODBC, System DSNs are under
HKLM\Software\ODBC

Grab code that can read the registry (like, for instance,
http://www.mvps.org/access/api/api0015.htm at "The Access Web") and check
whether the necessary key(s) exist.

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


"Dennis" wrote in message
news:337C8E5A-75B7-4AA8-B1FB-2C05488734E6@microsoft.com...
> Okay. But how do I *use* that? I understand that I can view the DSN name,

but
> how do I check to see if the user has that one defined on his PC?
>
> "Douglas J Steele" wrote:
>
> > Look at the Connect property of the table. The DSN name will be

contained as
> > part of it.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> > "Dennis" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> > news:C3A71FE4-1E92-477C-BB73-9905C47CE01F@microsoft.com...
> > > Here's the situation (Access 2002). Many of my agency's applications

use
> > > linked tables (to SQL tables). Is there a way that I can "test" to

see,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> > table
> > > by table, whether or not a user has the correct DSN/ODBC connection(s)

to
> > > access the table(s)?
> > >
> > > What I want to do is spin through each table, checking to see if it's
> > > accessible. If not, I want to generate a MsgBox, saying something

like:
> > >
> > > "You do not currently have the correct DSN setup for table 'myTable'.

> > Please
> > > contact the Helpdesk for assistance."
> > >
> > > I'd rather do that than have to trap an error in a critical routine
> > > somewhere else in the application. I can run this module right at

startup,
> > > and let a (new?) user know that they need something setup before they

can
> > run
> > > the application.
> > >
> > > Any ideas would be MOST appreciated.
> > >
> > > Thanks!!

> >
> >
> >



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:18 AM
Dennis's Avatar Dennis
Guest
 
Posts: n/a
   
   
Re: Do I have the right DSN for a linked table?

  Donate Today!  
I'll look into this. Thanks for the info!

"Douglas J Steele" wrote:

> Sorry, I thought you were wanting to check that they were linked using the
> correct DSN.
>
> DSN information is simply stored in the registry.
>
> User DSNs are under HKCU\Software\ODBC, System DSNs are under
> HKLM\Software\ODBC
>
> Grab code that can read the registry (like, for instance,
> http://www.mvps.org/access/api/api0015.htm at "The Access Web") and check
> whether the necessary key(s) exist.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Dennis" wrote in message
> news:337C8E5A-75B7-4AA8-B1FB-2C05488734E6@microsoft.com...
> > Okay. But how do I *use* that? I understand that I can view the DSN name,

> but
> > how do I check to see if the user has that one defined on his PC?
> >
> > "Douglas J Steele" wrote:
> >
> > > Look at the Connect property of the table. The DSN name will be

> contained as
> > > part of it.
> > >
> > > --
> > > Doug Steele, Microsoft Access MVP
> > > http://I.Am/DougSteele
> > > (no e-mails, please!)
> > >
> > >
> > > "Dennis" wrote in message
> > > news:C3A71FE4-1E92-477C-BB73-9905C47CE01F@microsoft.com...
> > > > Here's the situation (Access 2002). Many of my agency's applications

> use
> > > > linked tables (to SQL tables). Is there a way that I can "test" to

> see,
> > > table
> > > > by table, whether or not a user has the correct DSN/ODBC connection(s)

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> to
> > > > access the table(s)?
> > > >
> > > > What I want to do is spin through each table, checking to see if it's
> > > > accessible. If not, I want to generate a MsgBox, saying something

> like:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11060
> > > >
> > > > "You do not currently have the correct DSN setup for table 'myTable'.
> > > Please
> > > > contact the Helpdesk for assistance."
> > > >
> > > > I'd rather do that than have to trap an error in a critical routine
> > > > somewhere else in the application. I can run this module right at

> startup,
> > > > and let a (new?) user know that they need something setup before they

> can
> > > run
> > > > the application.
> > > >
> > > > Any ideas would be MOST appreciated.
> > > >
> > > > Thanks!!
> > >
> > >
> > >

>
>
>

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Recent Discussions
sikhism Benti Chaupai - Keertan...
Today 09:09 AM
14 Replies, 231 Views
sikhism Meditate - How, What,...
Today 08:30 AM
41 Replies, 1,161 Views
sikhism Are Nihangs: A Legacy...
Today 08:12 AM
15 Replies, 261 Views
sikhism Fools Who Wrangle Over...
Today 07:07 AM
914 Replies, 77,884 Views
sikhism Sukhmani Sahib Astpadi 8...
Today 06:38 AM
0 Replies, 17 Views
sikhism Is Hindu/Sikh a Valid...
Today 02:20 AM
82 Replies, 1,467 Views
sikhism Undercover Mosque
Today 01:10 AM
0 Replies, 43 Views
sikhism Incidental Happiness...
Yesterday 23:00 PM
0 Replies, 62 Views
sikhism Amazing truth!
Yesterday 22:20 PM
0 Replies, 65 Views
sikhism Black money: Indians...
Yesterday 21:40 PM
1 Replies, 54 Views
sikhism Sikh temple brawl a...
Yesterday 20:33 PM
0 Replies, 59 Views
sikhism Turban Cloth
Yesterday 20:32 PM
3 Replies, 101 Views
sikhism A village where every...
Yesterday 19:12 PM
0 Replies, 48 Views
Why have Sikhs Changed...
Yesterday 18:12 PM
34 Replies, 1,175 Views
Scientists cure cancer,...
By Kamala
Yesterday 14:09 PM
7 Replies, 124 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 09:42 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.47343 seconds with 30 queries