Solved

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

Posted on 2007-11-30
4
271 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 250 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

726 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