Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL 6.5 Server error
Message
De
15/07/2002 14:51:11
 
 
À
15/07/2002 14:40:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00678801
Message ID:
00678806
Vues:
9
You're missing a closing paren on the CREATE TABLE statement.

-Mike

>Hello Group,
>
>I am getting an error near Insert. What have I done wrong.
>
>CREATE PROCEDURE cissetschoolyear
>(@Schoolyear INT)
> AS
>/****** Object: Table dbo.schoolyear Script Date: 7/15/2002 2:33:01 PM ******/
>if exists (select * from sysobjects where id = object_id('dbo.schoolyear') and sysstat & 0xf = 3)
> BEGIN
>
> DELETE Schoolyear
>
> INSERT INTO dbo.Schoolyear (schoolyear)
> VALUES(@Schoolyear)
> END
>
>ELSE
>
> BEGIN
> /****** Object: Table dbo.schoolyear Script Date: 7/15/2002 2:33:01 PM ******/
> CREATE TABLE dbo.schoolyear (
> schoolyear decimal(5, 0) NOT NULL
>
> INSERT INTO dbo.Schoolyear (schoolyear)
> VALUES(@Schoolyear)
> END
>
>Thanks
>Jim
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform