Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding on a ListBox
Message
De
11/06/2003 10:40:14
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00798546
Message ID:
00798932
Vues:
33
Stephen,

I don't think that SQL is creating a PRIMARY KEY ... you need to have a constraint defined as follows:
ALTER TABLE depappl ADD CONSTRAINT
    PK_ap_key PRIMARY KEY CLUSTERED
    ( ap_key )
GO
~~Bonnie

>Kevin, Trust me EVERY table has a xx_KEY:
>
>
>CREATE TABLE [dbo].[depappl] (
> [ap_key] [int] IDENTITY (1, 1) NOT NULL ,
>
>)
> ON [PRIMARY]
>GO
>
>I added it into the Select statement just to passify a need for a key. It bombed without a reference to it too.
>
>__Stephen
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform