web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Stored Procedure is throwing error has no parameters pass as "@TVP_QUERYRESULTSTRINGS"

(0) ShareShare
ReportReport
Posted on by 396

Dear Community,

I hope all are doing well.

I have create a stored procedure which accepts two parameters. When i am executing the stored procedure from the CRT, it is throwing the below error.

Database error 'Unknown' occurred for 'execute stored procedure '[ext].DELETEITEMSTOCK''. The procedure "DELETEITEMSTOCK" has no parameter named "@TVP_QUERYRESULTSETTINGS".

I am trying to execute the stored procedure like below.

using (var dbContext = new SqlServerDatabaseContext(request))
{
ParameterSet parameters = new ParameterSet();
parameters.Add("@CHANNELID", channelid);
parameters.Add("@TERMINALID", terminalid);
try
{
int rowAffected = dbContext.ExecuteStoredProcedureNonQuery("[ext].DELETEITEMSTOCK", parameters);
}
catch (Exception ex)
{

}
}

Please help me to solve this issue.

I have the same question (0)
  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi,

    If possible - please, put full script for your store procedure here - to have a look.

    I checked some of my projects and ExecuteStoredProcedureNonQuery never had an issue with @TVP_QUERYRESULTSETTINGS. @TVP_QUERYRESULTSETTINGS is needed when you execute 'read data by page' only...

  • Pankaj_93 Profile Picture
    396 on at

    Hi Oksana,

    Thank you for your response....

    I had written some wrong code... that's why it was thrown the error...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 302 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans