Q : Procedure or function '' expects parameter '', which was not supplied.
A: 
Below proc throwing the exception if you pass null from ado.net to the stored procedure parameters
alter PROCEDURE [dbo].SP_UpdateHomePageContentDetails 
 @VideoLink varchar(65) ,
 @VideoLinkDescription varchar(65) ,
 @P_ReturnValue varchar(50) output
AS
BEGIN
Solution for the above problem is passing null to the parameters as a default value
alter PROCEDURE [dbo].SP_UpdateHomePageContentDetails 
 @VideoLink varchar(65) = null,
 @VideoLinkDescription varchar(65) = null,
 @P_ReturnValue varchar(50) output
AS
BEGIN
Solution for the QlikView, Biztalk, DotNet and MSBI real time development problems
Search This Blog
Thursday, July 28, 2011
Procedure or function '' expects parameter '', which was not supplied. exception in sql server while passing parameters from asp.net
Labels:
Sql Server
Subscribe to:
Post Comments (Atom)
Popular Posts
- 
Applies To ASP.NET version 1.1 ASP.NET version 2.0 Summary This How To shows how you can help protect your ASP.NET applications from cr...
- 
Use below javascript function to 1) validate the date difference in asp.net 2) difference (number of days, months, years) between two dat...
- 
Confirmation box from code behind c# using modalpopup ajax control <% @ Page Language ="C#" AutoEventWireup ="true...
- 
Use below code to raise messages from javascript and code behind. .ASPX <%@ Page Language="C#" AutoEventWireup="true...
- 
function numbersonly(e) { var unicode = e.charCode ? e.charCode : e.keyCode if (unicode != 8) { //if the key isn't the backspace key (...
 
 
No comments:
Post a Comment