Solved

SQL Server 2005, Not enough storage when inserting records.

Posted on 2008-09-29
19
401 Views
Last Modified: 2013-12-09
We have written an application which migrates from an interbase database to SQL Server 2005.

The software works fine on a development station when both interbase and sql server 2005 are on the same machine. ( we have tested millions of inserts on many different dev stations).

In Production, the migration software (running on same machine as interbase), cannot appear to insert specific records into the database, reporting error "Not enough storage is available to complete this operation"

The destination database should have ample space, and memory, and inserts are failing every time (not intermittent).

My suspicion is that it had something to do with running the software via the network or possibly something to do with a blob field (which causes space lookup which gets executed incorrectly possibly because of the via network scenario).

Note that other records insert fine.

Any thoughts as to what could be causing this ?
0
Comment
Question by:beefcake5000
[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
  • 8
  • 4
  • 3
  • +2
19 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 22595276
Are you sure that there is enough space?  Does it error when you insert just one record?  
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22595290
from the error message, MS suggests the following actions:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2000Msgs/3715.mspx?mfr=true

Do one of the following, then retry the operation:
(1) reduce the number of running programs;
(2) remove unwanted files from the disk the paging file is on and restart the system;
(3) check the paging file disk for an I/O error;
(4) install additional memory in your system.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22595297
or, with SQL 2000, I found this bug (fixed), so you might have the "old" client tools?
http://support.microsoft.com/kb/889170
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:beefcake5000
ID: 22595310
I am 99.9999% sure it is not a resource issue in this instance.
The migration process migrates successfully 120 records into one table, then fails approximately 100 times on inserting into another table.

Both tables are part of the same database.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 22595317
hmm...have you tried dbcc checktable()?
0
 

Author Comment

by:beefcake5000
ID: 22595337
I have ruled out anything to do with blob fields, there are none.

What does dbcc checktable() do ?
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 22595349
it checks the integrity of the pages of the table.
0
 

Author Comment

by:beefcake5000
ID: 22595373
angelll, could it be that we have an old version of the ADO connection drivers on the production machines ?

and how do i update these ?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22595413
a small vbscript to retrieve the ado version:
http://www.vbrad.com/article.aspx?id=5

Dim o As Object
    
    On Error Resume Next
    Set o = CreateObject("ADODB.Connection")
	
    If Err.Number = 0 then
        'ADO with version  o.Version  is installed
    Else
        'ADO is not installed
    End If

Open in new window

0
 

Author Comment

by:beefcake5000
ID: 22595456
I will need to check this version tomorrow, as I do not have access to the machine from here.

Are you able to help with expected versions, and where to get updated drivers so that I can try tomorrow morning ?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22595518
on this page, you can download the latest ADO (not .net) version: 2.8:
http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&displaylang=en

you also have a link to the 2.8 SP1, and another link to the MDAC version checker software.
0
 

Author Comment

by:beefcake5000
ID: 22606061
An update on this,

The MDAC has been updated and no difference there. I have tested on 3 more environments, and always the problem is encountered when the station running client, is on a different machine from database.

Some records are migrated successfully and some produce "not enough storage" error. If i rerun transfer, it is the same records each time.

This is the same whether I use ODBC or SQL.

I trimmed insert down to just the keys, incase records had invalid data, this unfortunatley made no difference.

Very strange thing is that this is not encountered on any dev station.

Over to the experts....
0
 

Author Comment

by:beefcake5000
ID: 22606082
I also checked tempdb, and appears to have plenty of space along with databases involved.
0
 

Author Comment

by:beefcake5000
ID: 22643839
It appears to be a problem with ntext fields if i take them out, all seems to work fine.
0
 

Author Comment

by:beefcake5000
ID: 22816237
I managed to resolve this issue myself. It turned out to be a bug with the MIDAS data provider drivers. I replaced with a newer version of the driver and it worked.
0
 
LVL 32

Expert Comment

by:Daniel Wilson
ID: 22830687
Glad you resolved it.
Would you accept your explanation as the solution?
And if you found some of the expert comments helpful, would you award them points?  Points you do not award come back to your account.
Thanks.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 23052903
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

623 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