Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 please correct this procedure

Author  Topic 

sushma patle
Starting Member

15 Posts

Posted - 2008-05-23 : 08:10:19
create proc AuthorTable @AuthotID int,
@AuthorName varchar(20),
@AuthorBook varchar(60),

as
insert into dbo.Author
( AuthorID,
AuthorName,
AuthorBook

)
values
( @AuthotID ,
@AuthorName,
@AuthorBook
)


spatle

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-23 : 08:18:32
quote:
Originally posted by sushma patle

create proc AuthorTable
@AuthotID int,
@AuthorName varchar(20),
@AuthorBook varchar(60),

as
insert into dbo.Author
( AuthorID,
AuthorName,
AuthorBook

)
values
( @AuthotID ,
@AuthorName,
@AuthorBook
)


spatle


Remove the comma after last param
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-05-23 : 08:18:50
Remove the comma after "(60)", just as the error message states.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -