473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

LINQ to SQL - JOIN of tables stored on different servers

Hello,

I work with VB2008 and SQL Server 2000.

I would like to make a JOIN between to SQL tables that are stored on
different servers. How should I write the LINQ statement(s) ?

Thank you for your help.
Gilbert
Sep 1 '08 #1
2 1825
Gilbert Tordeur wrote:
Hello,

I work with VB2008 and SQL Server 2000.

I would like to make a JOIN between to SQL tables that are stored on
different servers. How should I write the LINQ statement(s) ?

Thank you for your help.
Gilbert

Gilbert,

I don't think you can do it in Linq. You would have to either create a
view or use a stored procedure to do it and then use the view / SP in
the Linq statement.

LS
Sep 1 '08 #2
Gilbert,

Keep in mind that Linq is basicly a querry tool (although it has strong
features to update SQL servers)

Linq to SQL is only a part of Linq.

Cor

"Gilbert Tordeur" <gi*************@orange.frschreef in bericht
news:el**************@TK2MSFTNGP02.phx.gbl...
Hello,

I work with VB2008 and SQL Server 2000.

I would like to make a JOIN between to SQL tables that are stored on
different servers. How should I write the LINQ statement(s) ?

Thank you for your help.
Gilbert
Sep 2 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: djc | last post by:
I need to use data from multiple tables that are located in 2 different databases. Most of the tables are in SQL Server 2000 but 1 one the tables I need to include in my query resides in an...
7
by: steve | last post by:
Can you join two tables across different servers in mySQL, or am I dreaming of Oracle? -- Posted using the http://www.dbforumz.com interface, at author's request Articles individually checked...
4
by: Mateusz [PEYN] Adamus | last post by:
Hi all! Is it possible to join for example Oracle and MS SQL tables in one dataSet and show it in one dataGrid? I'm writing in C# and using standard ADO components that come with .NET...
4
by: =?Utf-8?B?V2lsc29uIEMuSy4gTmc=?= | last post by:
Hi Experts, I am doing a prototype of providing data access (read, write & search) through Web Service. We observed that the data storing in SQL Server 2005, the memory size is always within...
2
by: shapper | last post by:
Hello, I created 3 few tables that have Many to Many relationships: Posts (PostId PK) Files (FileId PK) PostsTags (PostId PK, TagId PK) FilesTags (FileId PK, TagId PK)
4
by: shapper | last post by:
Hello, I have 2 tables: Aid, Aname ... Bid, Aid, Bname ... I need to get the records in B given a Bname and a Aname. I think I should use Inner Join. I wrote the following code:
0
by: john | last post by:
I get the following error on this Join Statement, but I thought the idea of a LINQ Join is bring together different Data Context, the Intellisene shows me both tables as a Result; any help is...
8
by: Alcides | last post by:
Hello all, I learn about LINQ here in this forum. I been a VB.NET programmer for quite a while and we are using an internal solution for SQL access. I have some experience with C# and I started...
2
by: shapper | last post by:
Hello, I have the following Linq query: List<PostsTaginsert = (from t in (from t in database.Tags join p in paper.Tags on t.Name equals p.Name select t).ToList() select new PostsTag {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.