CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How To Use Easily Use 2 Different Data Sources in Grid

Print topic Send  topic

Author Message
boris

Posts: 14
Posted: 07/31/2006, 5:18 PM

This is my dilema and i'm not sure how to resolve it. I've simplified the dilema for ease of understanding.

We have 2 MSSQL databases.One has a list of Countries and the other has a list of Clients.

Country DB structure is CountryID, CountryName
Clients DB structure is ClientName, CountryID

We have a form where the Clients fill out their details and select from a ListBox (bound to Integer in the other DB) their respective Country. OK, no problems with this bit.

Now we want to create a Grid which lists the ClientName with the Country Name (not the integer value) but can't seem to get the right answer.

What we want is to achieve is:-
A Company Name, USA
B Company Name, UK etc.

Instead the best we can get is:-
A Company Name, 13
B Company Name, 21 etc.
which is all from the one DB.

I know if we combined the 2 DB's into 1 we wouldn't have this issue but we don't want to do that.

Has anyone got a solution for this? Any help is appreciated.

Thanks in advance.
View profile  Send private message
peterr


Posts: 5971
Posted: 07/31/2006, 8:51 PM

I recommend trying Google:
http://www.google.com/search?hl=en&q=query+multiple+sql+server+databases
http://groups.google.com/groups?q=query%20multiple%20sq...ver%20databases
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
boris

Posts: 14
Posted: 07/31/2006, 9:13 PM

Thanks Peter for a reply.

I've already been looking on Google as you had suggested but being a complete SQL novice it is all a steep learning curve for me.

I can see that you can join 2 tables together to create a View so i assume i use query that in CCS? I'll try and get my head around it again.

One thing i did try was to link both MSSQL DB's into an Access 2003 MDB and use that as the connection. It works great if i open Access directly but for some reason CCS dosn't see any of the tables in the Grid wizard . So i sort of gave up with that thought.
View profile  Send private message
peterr


Posts: 5971
Posted: 07/31/2006, 9:46 PM

You can probably create Views in MS SQL Server and then use those Views in CCS.

Regarding Access, I think that linked tables should work in CCS. At least I can see linked tables in CCS when connecting to MS Access via ODBC. It doesn't work for me only when connecting via JET.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.