Home All Groups Group Topic Archive Search About

How to connect server through server explorer in VS.NET?

Author
20 May 2009 2:07 PM
joseph
Hi,

I am learning the LINQ now. I tried to connect a database through network
using the VS.NET's Server Explorer (but failed), so I can drag and drop the
table to the LINQ to SQL designer.    Can someone tell me how to do it?  Or,
point me to a site that will can help this situation?

Other than using the Server Explorer to create the LINQ Classes, what other
ways that can do this?

Thanks in advance.

Joseph

Author
21 May 2009 4:04 AM
Cor Ligthert[MVP]
Hello Joseph,

Open project explorer or the tab Projects.

Choose for Add new Item -> Linq to Sql
Don't forget to change the default name and be aware that that name will
extended with DataContext forever.


Open Server explorer
Connect to a server and choose from that the tables or all tables and from
that the columns.

Build.

Cor

Show quoteHide quote
"joseph" <jos***@discussions.microsoft.com> wrote in message
news:ED620A98-EE1D-4023-B1FE-83E3A6A68171@microsoft.com...
> Hi,
>
> I am learning the LINQ now. I tried to connect a database through network
> using the VS.NET's Server Explorer (but failed), so I can drag and drop
> the
> table to the LINQ to SQL designer.    Can someone tell me how to do it?
> Or,
> point me to a site that will can help this situation?
>
> Other than using the Server Explorer to create the LINQ Classes, what
> other
> ways that can do this?
>
> Thanks in advance.
>
> Joseph