Monday, March 12, 2012

Invalid column name Ploeg.

When i try to execute i receive following error:

Msg 207, Level 16, State 1, Procedure WedstrijdDeelnemersSelectAllMPNietGoedgekeurd, Line 85

Invalid column name 'Ploeg'.

I dont really see whats wrong with the select... it works fine in the 2 first parts of the querry

ALTER PROCEDURE [dbo].[WedstrijdDeelnemersSelectAllMPNietGoedgekeurd]-- Add the parameters for the stored procedure here@.WedstrijdIDintASBEGIN-- SET NOCOUNT ON added to prevent extra result sets from-- interfering with SELECT statements.SET NOCOUNT ON;...UNIONSELECTdbo.fncGetPersoonNaam(L.PersoonID,0)as Persoon,'Ploeg: ' + WDPI.Ploegas TypeInschrijving,WDPIL.LidClubID,WT.Omschrijvingas WedstrijdType,C.Omschrijvingas Categorie,WDC.WedstrijdDetailID,WDC.IDas WedstrijdDetailCategorieID,WDPI.IDas TypeInschrijvingIDFROMWedstrijd WINNERJOIN WedstrijdDetail WDON W.ID = WD.WedstrijdIDINNERJOIN WedstrijdType WTON WD.WedstrijdTypeID = WT.IDINNERJOIN WedstrijdDetailCategorie WDCON WD.ID = WDC.WedstrijdDetailIDINNERJOIN Categorie CON WDC.CategorieID = C.IDINNERJOIN WedstrijdDetailPloegInschrijving WDPION WDC.ID = WDPI.WedstrijdDetailCategorieIDINNERJOIN WedstrijdDetailPloegInschrijvingLid WDPILON WDPIL.WedstrijdDetailPloegInschrijvingID = WDPI.ID...
END

forget it, someone updated the database and removed the column...Big Smile

No comments:

Post a Comment