473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dataset designer problem iwth Primary key

GS
set primary key option is greyed out in the dataset designer for a table

Details
In an vb.net express 2005 project, I have a dataset associated with table.
lets call this table codetable. the dataset is an ms sql express mdf.

in a different project, I use the vb studio data designer to change the
codetable in the mdf. I set Primary Key first columns instead of just one.
saved also changed the corresponding vsd file in designer.. it worked
wonderfully for the 2nd project.

after I open the original project, open the corresponding dataset .vsd file
in designer, I found, the codetable still has only one column as primary
like before.

"No problem". I thought I can highlight the columns and set primary key
again. however the set primary key option is greyed out.

the only difference between the datasets in the projects is: the first
project dataset has an extra table adapter is, GetDataBy I use to fill
with a datagridview with order by

I tried in the first project to delete the extra adaptor but no luck
what can I do
Oct 28 '06 #1
1 2008
GS
never mind. close and reopen vb studio. problem gone
"GS" <gs************ **********@msne ws.Nomail.comwr ote in message
news:%2******** **********@TK2M SFTNGP05.phx.gb l...
set primary key option is greyed out in the dataset designer for a table

Details
In an vb.net express 2005 project, I have a dataset associated with table.
lets call this table codetable. the dataset is an ms sql express mdf.

in a different project, I use the vb studio data designer to change the
codetable in the mdf. I set Primary Key first columns instead of just
one.
saved also changed the corresponding vsd file in designer.. it worked
wonderfully for the 2nd project.

after I open the original project, open the corresponding dataset .vsd
file
in designer, I found, the codetable still has only one column as primary
like before.

"No problem". I thought I can highlight the columns and set primary key
again. however the set primary key option is greyed out.

the only difference between the datasets in the projects is: the first
project dataset has an extra table adapter is, GetDataBy I use to fill
with a datagridview with order by

I tried in the first project to delete the extra adaptor but no luck
what can I do


Oct 28 '06 #2

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

Similar topics

0
1179
by: Tom Gao | last post by:
Hello, We are having a recurring problem of a typed dataset that we have in a form dissapearing from the VS designer and all bindings being lost. The dataset is defined in another component and we reference that component, and use the dataset designer tool to simply create the dataset variable on the form. Every so often though, with no...
3
7888
by: jason | last post by:
I'll try to explain in detail what it is I'm struggling with. I created a SQL database with one table called CallSheet which contains the following columns: Caller ID: <--Primary Key, auto indexed by my SQL server From: Company: Status: Date: Phone Primary:
11
19844
by: scorpion53061 | last post by:
Well I had a way to write an array to an excel spreadsheet but on a huge time critical run it failed iwth the dreaded HRESULT: 0x800A03EC error. It worked fine when i sampled the data to go in but when it all tried to go in it bombed. So I need to write this to a tab delimited file and I sure hope somebody is awake tonight. How do I...
4
2596
by: Dave Taylor | last post by:
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem is, when I modify these tables in SQL Server (typically adding fields and what not), there doesnt seem to be an easy way to update the typed...
4
2087
by: Robert Bravery | last post by:
Hi all, I have now correctly set up my dataset and two grids, so that the parent navigates the child. THe thing is that the child table is actually a lookup type table. It lists billing types for the parent table, so that I just store a key in the parent table, and the show the billing type description from the child I need to set this up in...
7
2145
by: SteveT | last post by:
Can someone point me in the right direction? Somewhere I read that you reference a strongly typed dataset as if it were a class structure. For example, <SomeTests> <TestsGroups> <Group> <TestName>TestA</TestNmae> <Test>Run1</Test> <Test>Run2</Test>
5
5338
by: Monty M. | last post by:
Hello; I was wondering if anyone can assist me with this problem. Here are the tools I am using: Language: C# Database: MS SQL Server 2000 Application: Visual Studio 2005 1. I have a table whose primary key is a varchar data type.
5
16700
by: Mark Chambers | last post by:
Hi there, Can anyone explain the following (very) simple scenario. 1) I make an exact copy of my "DataSet" and delete one record from a given table (in the copy) 2) I invoke "DataSet.GetChanges()" on the above copy and pass the results to "DataSet.Merge()" on the original copy 3) If I now inspect the original copy, it shows that the...
3
2830
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one dataset to data in a second dataset, using a common key. I will first describe the problem in words and then I will show my code, which has most of the...
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.