Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Procedure ’sp_InsertProfile’ expects para
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Procedure ’sp_InsertProfile’ expects para

 Post Reply Post Reply
Author
raj74 View Drop Down
Newbie
Newbie


Joined: 27 August 2002
Location: United Arab Emirates
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote raj74 Quote  Post ReplyReply Direct Link To This Post Topic: Procedure ’sp_InsertProfile’ expects para
    Posted: 04 May 2003 at 7:52am

hi guys,

 When i try to insert a record from asp by calling a stored procedure in sql server2000 i am getting the following error.

the error is ...

Microsoft OLE DB Provider for SQL Server error '80040e10'

Procedure 'sp_InsertProfile' expects parameter '@Expect', which was not supplied.

my stored procedure is ...

CREATE PROCEDURE sp_InsertProfile
(
 @Name varchar(50),
 @Expect varchar(500)
)
 AS

IF EXISTS(SELECT Serial_No from Profile_Details Where Profile_ID =@Profile_ID)
 return(0)
ELSE
 INSERT INTO Profile_Details
 (Name,Expectation)

 VALUES

 (@name,@Expect)

RETURN @@IDENTITY

SET NOCOUNT OFF
GO


my asp coding is ...
...
commInsert.Parameters.Append commInsert.CreateParameter("@Expect",adVarChar,1,500,vExpectation)    
commInsert.Execute()

thanks in advance
raj74

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2003 at 10:36pm

You've got two parameters there in your SP.

Are you also providing the @Name parameter?

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.