Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 connections
Message
 
To
05/05/2004 07:32:30
Peter Walburn
Omega Data Services Ltd
Aberdeen, United Kingdom
General information
Forum:
ASP.NET
Category:
Databases
Title:
Miscellaneous
Thread ID:
00901124
Message ID:
00901134
Views:
18
Are these 2 databases on the same server?

If yes, you can simply use DBName.Owner.TableName syntax.

If not:
-You can link your servers.
-You can use the OpenRowset TSQL command to retreive data from another source.


>Hi,
>
>I am developing an application in VB .Net using SQL Server for the database. I have multiple databases in SQL server and have a requirement to create a recordset in VB that takes data from 2 tables in different databases.
>
>Is there a way to create a view that combines tables from 2 databases? Or do I need to create a recordset in memory and then populate it from both tables seperately?
>
>Pete
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform