Solved

SQL Server 2005, Not enough storage when inserting records.

Posted on 2008-09-29
19
385 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Latency in .net app using DB in .net 21 74
TypeError: Users.save is not a function 3 60
How to join on ID, with prefix? 15 65
error in my cursor 5 41
Creating and Managing Databases with phpMyAdmin in cPanel.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

839 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