Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,786| Members 17,820, Newest waheguruhelpme| Online 189
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Connect to more than 1 SQL DB (>1 SQL backends)

Connect to more than 1 SQL DB (>1 SQL backends)

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Unable to connect to ADP database Scott0620 Information Technology 14 28-Jul-2006 08:19 AM
Connect to OLEDB..? Kent Johnson Information Technology 3 03-Nov-2005 11:35 AM
How to connect to nntp server manohar Information Technology 1 28-Oct-2005 18:00 PM
User Connect to Server Jim Bunton Information Technology 2 28-Oct-2005 17:59 PM
how to connect a nntp server manohar Information Technology 1 28-Oct-2005 17:59 PM


Tags
>1, backends, connect, gt1, sql, than
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:09 AM
rogge's Avatar rogge
Guest
 
Posts: n/a
   
   
Connect to more than 1 SQL DB (>1 SQL backends)

  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
All:
I am wondering if one can connect to more than one SQL DB. I would like to
create a front end that connects to more than one SQL Server backend.

For instance, I would like to keep the main database separate from a postal
code database. Then the postal code DB can be used for other databases and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10091-connect-more-than-1-sql-db.html
manages separately.

Is the database file type, MDB, file the only method or can an Access
project be used, ADP? Can this be done by linking tables, preferred Access
and time constraints, or will a ADO connection need to be programmed,
preferred by .NET or VB?

If this can be completed using linked tables, please provide or point to a
step-by-step guide for linking tables without using "My Data Connectons",
thank you.

Access 2003 / SQL Server 2000 / Win Server 2003
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091

Thank you for all your help! -r



 
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:10 AM
Rick Wannall's Avatar Rick Wannall
Guest
 
Posts: n/a
   
   
Re: Connect to more than 1 SQL DB (>1 SQL backends)

I use an MDB and DSN-less connections to connect to as many different SQL
Servers as I want at any given moment. (I don't think you can do that with
an ADP, but someone who uses those more may correct me on that.)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091

Use TransferDatabase command and a table of links (tablename + connect
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
string) to set your connection table-by-table. You can normalize another
level to be more efficient at storing connection strings, but that's a
challenge for another post.

If you look at these topics and still have trouble, post back here.


Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:10 AM
rogge's Avatar rogge
Guest
 
Posts: n/a
   
   
Re: Connect to more than 1 SQL DB (>1 SQL backends)

Thank you Rick, have a great week.

That is what i was afraid of... I had used something similar to
TransferDatabase to point the conneciton to the same folder. looping through
a table is a good idea / if i do this i might as well use FORTRAN (ROTFLMHO).
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
Since i will have more options with the front end.

hmmm i might be able to use about 93.5% of an application i programmed about
3 years ago.

"Rick Wannall" wrote:

> I use an MDB and DSN-less connections to connect to as many different SQL
> Servers as I want at any given moment. (I don't think you can do that with
> an ADP, but someone who uses those more may correct me on that.)
>
> Use TransferDatabase command and a table of links (tablename + connect
> string) to set your connection table-by-table. You can normalize another
> level to be more efficient at storing connection strings, but that's a
> challenge for another post.
>
> If you look at these topics and still have trouble, post back here.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:10 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: Connect to more than 1 SQL DB (>1 SQL backends)

It is recommended to use CreateTableDef instead of DoCmd.TransferDatabase
Note: I think there's a bug in it's parameter clauses
ie
Set TDef = Db.CreateTabledef(TName)
TDef.ForeignTableName="Foo"
TDef.Connect="..."
Db.Tabledefs.Append TDef
'Will Work

whereas

Set TDef = Db.CreateTabledef(TName,,"Foo","....")
Db.Tabledefs.Append TDef
'will fail in my experience

Pieter

"Rick Wannall" wrote in message
newsIocg.75531$_S7.63910@newssvr14.news.prodigy. com...
>I use an MDB and DSN-less connections to connect to as many different SQL
>Servers as I want at any given moment. (I don't think you can do that with
>an ADP, but someone who uses those more may correct me on that.)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
>
> Use TransferDatabase command and a table of links (tablename + connect
> string) to set your connection table-by-table. You can normalize another
> level to be more efficient at storing connection strings, but that's a
> challenge for another post.
>
> If you look at these topics and still have trouble, post back here.
>
>



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick Wannall's Avatar Rick Wannall
Guest
 
Posts: n/a
   
   
Re: Connect to more than 1 SQL DB (>1 SQL backends)

  Donate Today!  
No argument on using CreateTableDef vs. TransferDatabase.

Main focus is that you can use a table of connections and set them at will.
The core of it along this line:

strConnect = "myconnectioninfo"
Set tdf = dbs.TableDefs("mytablename")
tdf.Connect = strConnect
tdf.RefreshLink

If you put this inside a loop that gets you a list of tables, and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
additionally connect that list to a table of connection strings, you can
control put multiple connect strings for the same table in the list of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10091
connections, and retrieve the one you want based on a setting that I call
Mode (one of "Dev", "Live", "Test", "Train")



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!
» Active Discussions
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 43 Views
sikhism need urgent advice.......
Today 05:29 AM
5 Replies, 69 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Who is "Mohan"?
Today 03:58 AM
20 Replies, 315 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,829 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,271 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,025 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 42 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 06:44 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.42251 seconds with 30 queries