Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. ADO and memory limit? "Description: Not enough storage is available to complete this operation."

ADO and memory limit? "Description: Not enough storage is available to complete this operation."

Scheduled Pinned Locked Moved Database
databasesql-servervisual-studiocomsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    devvvy
    wrote on last edited by
    #1

    Hi I'm getting error while retrieving only a dataset <100k rows (~150MB estimate) - ran into this error: "Description: Not enough storage is available to complete this operation." After googling seems like it's related to memory (As supposed to disk space or SQL server) This is how I instantiate connection and command: ADOconn.conn = actxserver('ADODB.Connection'); ADOconn.conn.ConnectionString = connStr; ADOconn.conn.CursorLocation = 2; ADOconn.conn.ConnectionTimeout = xxx; ADOconn.conn.CommandTimeout = xxx; ADOconn.conn.Open; ADOconn.command = actxserver('ADODB.Command'); ADOconn.command.CommandTimeout = 0; ADOconn.command.CommandType = 4; ADOconn.command.ActiveConnection = ADOconn.conn; Any idea if there's a property on connection or command whereby max memory limit can be set? (And is there a default?) Thanks ADO Connection object http://msdn.microsoft.com/en-us/library/ms807027.aspx ADO Command object http://msdn.microsoft.com/en-us/library/ms675022(v=vs.85).aspx Microsoft SQL Server connection string http://www.connectionstrings.com/sql-server-2005

    dev

    J 1 Reply Last reply
    0
    • D devvvy

      Hi I'm getting error while retrieving only a dataset <100k rows (~150MB estimate) - ran into this error: "Description: Not enough storage is available to complete this operation." After googling seems like it's related to memory (As supposed to disk space or SQL server) This is how I instantiate connection and command: ADOconn.conn = actxserver('ADODB.Connection'); ADOconn.conn.ConnectionString = connStr; ADOconn.conn.CursorLocation = 2; ADOconn.conn.ConnectionTimeout = xxx; ADOconn.conn.CommandTimeout = xxx; ADOconn.conn.Open; ADOconn.command = actxserver('ADODB.Command'); ADOconn.command.CommandTimeout = 0; ADOconn.command.CommandType = 4; ADOconn.command.ActiveConnection = ADOconn.conn; Any idea if there's a property on connection or command whereby max memory limit can be set? (And is there a default?) Thanks ADO Connection object http://msdn.microsoft.com/en-us/library/ms807027.aspx ADO Command object http://msdn.microsoft.com/en-us/library/ms675022(v=vs.85).aspx Microsoft SQL Server connection string http://www.connectionstrings.com/sql-server-2005

      dev

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #2

      A dataset requires approximately ten times the space of the actual data (give or take a lot). So if you're running a 32 bit application I would not be surprised if you hit the 2 GB program limit. Can you use a datareader instead and page the data? Or store the data more efficiently in a collection instead of a dataset?

      List of common misconceptions

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups