Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2008, 10:44 AM
Registered User
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default using two database in one application..possible?

Hi

I am practicing database design and I have question about this:
* is it possible to use two database in a one application?
* is it possible to make a relationship between the two database? example: the primary key is in the ONE database and its foreign is in the TWO database?

if it is possible, then is it advisable to use two database?

Thanks....






http://www.johnalsopinsurance.com/
 
Old May 20th, 2008, 05:35 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

Any way you can access two separate database using two separate connections, but according to me you can not set relation across two databases.

urt

Help yourself by helping someone.
 
Old May 21st, 2008, 06:18 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

AFAIK, and as urt pointed out, you can not setup DRI between two sperate databases. You could use triggers, sort of a procedural integrity if you will, to overcome this. (The SQL Guru's may have a better suggestion)

Yes it is possible to create connections to 2 sepeate databases within an application.

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Big Desktop Database Application abhijitbk WinForms/Console Application Design 0 July 24th, 2008 07:54 AM
Install Application with Database rolandatem C# 2005 3 May 11th, 2008 11:13 AM
creating database application ruslaim VB Databases Basics 3 November 21st, 2007 10:25 PM
Flash Web-Database application. robprell Flash (all versions) 1 January 5th, 2007 12:18 AM
how i can use Access Database in my application ranakdinesh Pro VB Databases 4 May 21st, 2004 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.