Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL 6.5 Server error
Message
From
15/07/2002 14:51:11
 
 
To
15/07/2002 14:40:43
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00678801
Message ID:
00678806
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform