.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Procedure or function sp_MSenumchanges has too many arguments specified

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :Sql Server

I'm using SQL Server 2000 SP4 Enterprise Edition. I created a Merge Replication and a push subscription. I got the follow error message in Merge Agent:

Message: The process could not enumerate changes at the 'Publisher'.
Percent Complete: 0
Source:  Failed Command
Number:  0
Message: {call sp_MSenumchanges(?,?,?,?,?,?,?,?,?)}
Percent Complete: 0
Source:  WINSVR2003N
Number:  8144
Message: Procedure or function sp_MSenumchanges has too many arguments specified.

Anybody knows how to solve it?

View Complete Post

More Related Resource Links

Procedure or function ... has too many arguments specified


When i execute this SP in DB, it works fine. But when i execute from asp.net app it is throwing error:

Procedure or function ... has too many arguments specified


ALTER PROC [dbo].[sp_Customer]

@brchID char(40),
@brchName VARCHAR(50),
@userID VARCHAR(50)



DECLARE @req_pk  int
DECLARE @customer_org_pk int

IF EXISTS(SELECT * FROM [customer] WHERE [org_id] like @brchID)

    SELECT [org_pk] FROM [customer] WHERE [org_id] like @brchID


    EXEC sp_get_next_control_no 'organization.org_pk',@customer_org_pk out;
    INSERT INTO [customer] (org_pk,[org_id],[org_name])
    SELECT [org_pk] FROM [customer] WHERE [org_id] like @brchID

--Address Book Entry

IF NOT EXISTS(SELECT * FROM [address_book] WHERE [prsn_id] like @userID)

    exec sp_get_next_control_no 'person.prsn_pk',@req_pk out;

IF (@@ERROR <> 0)


Procedure or function proc_SecGetIndividualUrlSecurityCheckEventReceivers has too many arguments spe


When upgrading from december 2009 CU update to the latest to date (office-kb2276472-fullfile-x86-glb & wss-kb2276474-fullfile-x86-glb) for MOSS 2007 i get an error when I try to delete a file. In the logs the following lines appear:

Unexpected query execution failure, error code 8144. Additional error information from SQL Server is included below. "Procedure or function proc_SecGetIndividualUrlSecurityCheckEventReceivers has too many arguments specified." Query text (if available): "{?=call proc_SecGetIndividualUrlSecurityCheckEventReceivers(?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"

I already ran the SharePoint Products and Technologies Configuration Wizard several times but no result. I noticed that sharepoint gives 14 parameters and the stored procedure only takes 13 parameters...

Any suggestions?

Procedure or Function has too many arguments..


I m new with asp.net language & i m working with ASP.NET 3.5. I m using SQL server 2005. My Stored procedure is execute properly in SQL But when i call the SP & insert data in asp.net at that time the error occurs "Procedure or Function has too many arguments specified." This error occurs in so many pages. Please help me i m very confused what to do. Please solve my problem..


My Stored procedure is:

ALTER PROCEDURE [dbo].[insert_skill]
    @skill_name varchar(20)=null,
    @description varchar(100)=null
INSERT INTO skill_master


My C# code is:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Skill_Master : System.Web.UI.Page
    SkillBean obj = new SkillBean();

Procedure or function CurrentHistoryHsttblSave_sp has too many arguments specified



I am trying to use SQL Server 2008 R2 with VS 2010 Pro, VB on a standalone Windows XP, Pro, SP3 computer to execute a stored procedure from a database using this code:

    Public Shared Function ExecuteNonQuery( _

            ByVal storedProcedureName As String, _

            ByVal ParamArray arrParam(

Procedure or function has too many arguments specified - IN DESPERATE NEED OF IMMEDIATE ASSISTANCE!!


I have a stored procedure that was previously working but has since stopped since I imported date into the table that it should be altering.

The purpose of this stored proc is to take new patient data input by user and add data to new record in patient table and generate and output the new patients ID number.  But now upon execution I recieve the error msg: Procedure or function has too many arguments specified.  This is a critical and time sensitive issue so ANY assistance would be appreciated.


USE [Clinic2]
/****** Object:  StoredProcedure [dbo].[usp_InsPatient]    Script Date: 05/10/2011 10:16:43 ******/
-- Batch submitted through debugger: SQLQuery13.sql|7|0|C:\Users\Administrator\AppData\Local\Temp\1\~vsC167.sql
ALTER PROCEDURE [dbo].[usp_InsPatient]
 @LastName nvarchar(30),
 @FirstName nvarchar(30),
 @Street nvarchar(35),
 @City nvarchar(20),
 @State nvarchar(2),
 @Zip int,
 @DOB nvarchar(50),
 @PatientID int output
 --@err varchar(250) = null output

-- usp_InsPat 'test','ltest',null,null,null,null,'10/25/2010'

declare @err as varchar(100)
if @Firstname IS

How to use Store Procedure to execute the Function Of COM DLL (the DLL is Coded By C#)

Hi All, I find a question. How to use Store Procedure to execute the function of Dll? I tried as the steps: 1. Code a dll 2. Register the dll by "regasm XXX.dll /codebase" 3. Use the dll in SP But when I do it in step 3, I face some error, which is "Invalid class string" and the error ID is "0x800401F3" Could you help me solve this problem? Thank you very much.

Cannot call Table Valued Function from Dynamic stored procedure statement

Hello,  I have a table-valued function that splits string into a table column. I can easily call this function from a stored procedure within a regular SELECT statement: SELECT * FROM Table1 WHERE Code1 = '1' AND Code2 IN(SELECT * FROM [dbo].[fnSplitValues](@Code2String))   However when I try to use the same logic for a dynamic SELECT statement: ‘SELECT * FROM Table1 WHERE Code1 = '1' AND Code2 IN(SELECT * FROM ' + [dbo].[fnSplitValues](@Code2String) + ')’ I get an error ‘Cannot find either column "dbo" or the user-defined function or aggregate "dbo.fnSplitValues", or the name is ambiguous.’ Any idea what is wrong with my dynamic SQL?   Please help, Lana

SharePoint - Passing Dataview Row Arguments to a C# function from a button

RE: SharePoint - Passing Dataview Row infomration to a C# function I've done this with a asp.net Gridview. but does anybody have any examples on how to pass row information from an asp.net button in  SharePoint Dataview rows to an inline C# function? the button Repeats as follows: <asp:Button runat="server" Text="Delete" id="Delete{@ID}"  OnClick="DeleteDoc()"/> My function looks like this: void DeleteDoc(object sender, EventArgs e) { } I tried adding another parameter but get: No overload for 'DeleteDoc' matches delegate 'System.EventHandler' Thank you.

Entity Model- Add Function Import - selected stored procedure returns no columns

I am using stored procedures returns columns from pivot table generated dynamically "Execute (@PivotTableSQL)".So the resultset columns cannot be identified. Please let us know how to add function import and Get Column information(create complex Type). Thanks in advance. My stored procedure is alter PROCEDURE spGetQuestGrid( @QID as int)ASBEGIN SET NOCOUNT OFF SET FMTONLY OFF  Declare @optId varchar(10) set @optId = (select DISTINCT Optid from  QuestOptions where  QID = @QID)    DECLARE @PivotColumnHeaders VARCHAR(MAX) SELECT @PivotColumnHeaders =  COALESCE(@PivotColumnHeaders + ', [' + cast(Caption as varchar) + ']' ,  '[' + cast(Caption as varchar)+ ']' ) FROM OptionsDetail where OptId = @optId  DECLARE @PivotTableSQL NVARCHAR(MAX)  SET @PivotTableSQL = 'select * from  ( select  Caption,Optid  from OptionsDetail ) as dt PIVOT  ( min(Optid) FOR Caption IN ( '+ @PivotColumnHeaders + '))as pt'     Execute (@PivotTableSQL)  END 

Stored procedure and table value function


I have a function called F_TBL_VALS_FROM_STRING this function returns a table and uses '|' as a delimiter to distinguish between values.
this function is used in a procedure (bellow), while I've tested this function and it returns the requested values, using it in this stored procedure does not work.

ALTER PROCEDURE dbo.mytestproc
    @doorList     varchar(4000),
    --From Date
    @FromDateYear   int,
    @FromDateMonth  int,
    @FromDateDay   int,
    --To Date
    @ToDateYear    int,
    @ToDateMonth   int,
    @ToDateDay    int,
    --From Time
    @FromTimeHour   int,
    @FromTimeMinute  int,
    @FromTimeSecond  int,
    --To Time
    @ToTimeHour     int,
    @ToTimeMinute   int,

Difference between procedure and function ?

What is the difference between procedure and function

ISNULL Function requires 2 Arguments



Decalre @international SMALLINT

I am Getting @International from some other table in my cursor

Then i am doing an Insert

The requirement is if @international is NULL it should be 'N'

If it is not null then it should insert @international value from what ever joined tables


Insert Into Table_XYZ

Values(1,'Abc','USA',ISNULL(@International,'N',@international) )


Error:THE ISNULL Function requires 2 Arguments....


Can some me helpm on this...





Use function name twice with different arguments


The question is about WCF and WSE.

I`m looking for a way to re-use the function name for a different function.


Public Function Call(Byval iActivationCode as String) as String
Public Function Call(Byval iUser as Integer, Byval iProductNumber As Integer) as String

If it`s not possible, how does everyone else do this?
- create a request object (check inside the function for the filed fields, its not the right way i think)
- create they two different functions with different names (You get a lot of different and long function names)
- rename the functions for remote users (i don`t prefer this becaus you lose the compiler functionality and overview)


A USE database statement is not allowed in a procedure, function or trigger.




I’m automating a large Archiving\Purging script on 1TB multi-databases.


I run all Sp’s from Archive database (Destination database).


The log file gets full fast in both source and destination databases and the whole process stopped, I have to clear all log files, as well I have to shrink file after clearing it.


Passing multiple arguments from a listview to a JavaScript function


Hello, I have been stuck on how to pass multiple to a JavaScript function in a item template of a list view. Below is my code. Does anyone know the process? Thank you.


                            <td style="width: 114px; height: 139px;">

                                <div style="width: 105px; height: auto">

                                    <img alt="" id="Image7" runat="server" src='<%# DataBinder.Eval(Container.DataItem,"images")%>'

                                        width="100" height="125" border="0" onmouseover='"javascript:show(<%# DataBinder.Eval(Container.DataItem,"images")%>)","(<%# DataBinder.Eval(Container.DataItem,"filename")%>)","(<%# DataBinder.Eval(Container.DataItem,"caption")%>)",1,234'

how to call a procedure from within a function


Hello I'm working on SQL 2008

I have a function that takes a variable name and return it's value

however I need from this function an additional feature which is to insert that variable name in a log table in case it was not found

however I'm getting the following error:

"Only Functions and some extended stored procedures can be executed from within a function"

Calling a stored procedure or function from another stored procedure


Hello people,

When I am trying to call a function I made from a stored procedure of my creation as well I am getting:

Running [dbo].[DeleteSetByTime].

Cannot find either column "dbo" or the user-defined function or aggregate "dbo.TTLValue", or the name is ambiguous.

No rows affected.

(0 row(s) returned)


Finished running [dbo].[DeleteSetByTime].

This is my function:






RETURN SELECT Settings.TTL FROM Settings WHERE Enabled='true'

This is my stored procedure:




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend