473,396 Members | 1,771 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.

Add relationships between tables c# VS2005 Server Explorer

Hi, i've started a c# project using MS compact SQL as a datasource. I
am able to add tables in the server explorer and columns in these
tables, but how can i add relationships between tables (define a
column as a foreign key), such that when i add the tables as a
datasource the relationship is already defined on the schema viwer? Do
i need an external tool to do this?

Sorry for being slightly off topic but i want to try and catch the
experts here rather than in generic visual studio newsgroup.

Cheers,

Chris

May 19 '07 #1
2 1598
Chris,

I believe that you can set relationships on the properties of the table
itself (there is a page for indexes, another for relationships, etc, etc).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<mo*****@gmail.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
Hi, i've started a c# project using MS compact SQL as a datasource. I
am able to add tables in the server explorer and columns in these
tables, but how can i add relationships between tables (define a
column as a foreign key), such that when i add the tables as a
datasource the relationship is already defined on the schema viwer? Do
i need an external tool to do this?

Sorry for being slightly off topic but i want to try and catch the
experts here rather than in generic visual studio newsgroup.

Cheers,

Chris
May 19 '07 #2
I believe that you can set relationships on the properties of the table
itself (there is a page for indexes, another for relationships, etc, etc).
thanks for the reply, i cant see any of that under the table
properties dialog. i have since found microsoft.public.sqlserver.ce
and will try this, however would still be interested to hear from any
users here (i was recommended to use ms compact sql by a fellow
developer from this newsgroup).

Cheers,

Chris

May 19 '07 #3

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

Similar topics

1
by: Bennett Haselton | last post by:
I want to get an ASP.Net hosting account with my ISP, and I'm trying to find out what level of access to the server is requried in order for me to view the server in Server Explorer in Visual...
0
by: Mark Huebner | last post by:
I have Visual Studio 2003 Professional and MS SQL Server 2000 installed on my laptop. For some reason, I can't create a new database with the Visual Studio Server Explorer. The error message is...
0
by: Bennett Haselton | last post by:
In Visual Studio .Net 2002 Server Explorer, if I add a new connection under "Data Connections", I can specify a remote server name and the username and password that I want to use, but then when...
2
by: AH | last post by:
Dear all, I am facing this 'bug' that really drive me nut. I created a trigger for Update script and tested in Enterprise manager to ensure it function correctly. However, when I used both VB or...
2
by: KIWI | last post by:
On VS2003/Server Explorer/Database Connections I can edit a table of a SQL Server 2000 SP3 but, I intalled a new SQL Server 2000 SP3 on another machine and can not edit tables. Which are the...
0
by: Darrell Wesley | last post by:
How do I get the default instance of SQLEXPRESS to show up in Server Explorer in VS2005? It shows up just fine in VS2003.
0
by: S Chapman | last post by:
I am running the new VS.Net 2005. I have added a new database connection to the server explorer and it correctly adds the connection and displays all the tables in the database that I added. But...
0
by: Sagaert Johan | last post by:
Can't find the stuff. Where can i change or see the relations between tables ? J.
8
by: Doron Farber | last post by:
Hi All, How can I Move the Server explorer window to the left. When ever I double click on the Server explorer top window it goes to the bottom of the IDE. Thanks, Doron
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.