Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL 6.5 Server error
Message
De
15/07/2002 14:40:43
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
SQL 6.5 Server error
Divers
Thread ID:
00678801
Message ID:
00678801
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform