Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:46:23+00:00 2026-06-17T21:46:23+00:00

Hi I am calling a stored procedure from .net code. The stored procedure is

  • 0

Hi I am calling a stored procedure from .net code. The stored procedure is calculating certain values based on the parameter send from the .net code. After calculation of certain values, three Insert statements to the same table is executed at the end of the stored procedure. I find that at times these insert statements doesn’t insert records in the table. This is quite weird as I have thoroughly checked that the stored procedure is called properly and the parameter is sent across as well. Also when only 1 thread runs the problem doesn’t arise. It is only in case I am running 9 multiple threads that is accessing the same stored procedure parallely.

Please suggest if some setting needs to be checked or something that is missing.

I doubt there might be a deadlock situation that is arising and preventing the inserts. But I am not sure. I also checked the allow_row_locks and allow_page_locks in the indexes for the table and these are set as ‘ON’;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:46:24+00:00Added an answer on June 17, 2026 at 9:46 pm

    I would say your code is generating the same values to insert, thus violating the constraints of the table.

    Do you have primary keys or unique keys in the table? Maybe there are some checks in triggers in the table that might cause this?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im calling a SQL stored procedure from a piece of C#.net code: SqlHelper.ExecuteDataset(sqlConnection, CommandType.StoredProcedure,
In Ado.net, the code is calling a stored procedure with input and output parameters.
When calling a stored procedure from vb.net is there a default SQL timeout time
From my ASP.NET application I am calling an INSERT stored procedure, there is a
Aim: Calling a very slow stored procedure (with parameters) asynchronously from code behind of
I'm calling a stored procedure from C# .net and one of the string parameters
Possible Duplicate: SQL Server & .net support calling a stored procedure with param's values
I'm currently calling a stored procedure from a .net application that inserts records into
I'm having intermediate timeouts when calling this stored procedure from ASP.NET frontend environment on
In a VB.NET application (VS2005) I am calling a stored procedure through a SQLDataAdapter.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.