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

  • Home
  • SEARCH
  • 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 8050725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:08:43+00:00 2026-06-05T07:08:43+00:00

I have a database in SQL Server 2008 R2 where all tables seem to

  • 0

I have a database in SQL Server 2008 R2 where all tables seem to be functioning normally except for one table.

In this table, I can’t delete a row or insert a row because it goes for over 30 min and times out.

My insert looks like this:

INSERT INTO [dbo].[brokenTable] ([Change], [Date], [ProdId], [IntCol]) 
VALUES ('test', getdate(), null, '99999')

However, I can select. Selecting top 200,000 takes 33 seconds. There are only ~260,000 rows in the table. There are five columns(one int primary key, one date, another int columns, and 2 varchar columns.)

This table used to work fine and be quick, I have made no structure changes at all.

Does anyone have any ideas why this might have happened, and how to fix it?

  • 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-05T07:08:44+00:00Added an answer on June 5, 2026 at 7:08 am

    To people of the future who may have the same problem.

    I thought the query was going very slow, this was not the case. It was being locked by another session. If you follow Martin Smith’s comments, he helped me find which one to fix it.

    First, I ran

    select * from sys.dm_os_waiting_tasks
    

    while running a query that would not finish, and again while not running it, to find a LCK_M_IX. I used the Session Id from that row, and matched it with the row from

    select * from sys.dm_exec_sessions
    

    and found the offending session that was blocking my query!

    Since I knew this was a safe session to end, i ended it with

    Kill [sessionId]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table like this in my database (SQL Server 2008) ID Type
I have a SQL Server 2008 R2 Database with twenty tables and each table
In an SQL Server 2008 database, I have tables such as: CREATE TABLE t_DeviceType
I have a SQL Server 2008 database where all access to the underlying tables
I have SQL Server 2008 Ent and OLTP database with two big tables. How
I have table a and table b . (SQL Server 2008) Both tables have
I have a stored procedure in a SQL Server 2008 database. This stored procedure
We have a database called AVL in SQL Server 2008 R2 SE. This database
I have a SQL Server 2008 database with 2 tables. These tables are defined
I have a database on SQL Server 2008. I have an ASP.NET application that

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.