?
Solved

MS Sql 2000 table is set to grow unlimited but table failed to accept new INSERTs

Posted on 2007-11-30
4
Medium Priority
?
273 Views
Last Modified: 2011-09-20
using asp page and vbscript i was attempting to INSERT vis sql statement records to a table.
the database was set to grow unlimited and there was over 300 gig of space ont the drive where the mdf files resided.  however, i was getting a script timeout when trying to insert a record.  the table had about 89000 records in it.  after purging the table down to 16000 records, the asp page completed properly and added records.

what reason would cause a table to stop accepting new records?
0
Comment
Question by:mhamlett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 750 total points
ID: 20382047
It didn't stop, it took too long.  Probably bad indexes (or no indexes) made the insert take longer than your application expected
0
 
LVL 28

Expert Comment

by:sybe
ID: 20382114
How do you insert a new record with ASP?

I have sometimes seen code that would pull out all records in a recordset, then add a new record to the recordset and save the recordset. Of course that will take a long time with many records.

0
 
LVL 25

Expert Comment

by:kevp75
ID: 20387155
i agree with all of the above, with the exception that it should not matter how many records the table currently has.  this should have no effect on the isert query whatsoever,,,since the only work being done is the insert.

I would take a look at the timeout settings you have for your connection string, and then take a look at the insert query itself....are you doing alot of pre-processing, are there 89000 fields, etc...
0
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 20388309
Once records were deleted, space was freed in data and index pages, so the number of records *can* have an impact.

The only real test is to run the same INSERT from Query Analyzer, which has no timeout value.  Remove ASP from the equation to eliminat the table as the source
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question