Results 1 to 3 of 3

Thread: Not enough storage is available to complete this operation error

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    35

    Not enough storage is available to complete this operation error

    Hi I have the following code:
    VB Code:
    1. Function RunFODBPackage(ByVal SQLString As String, ByVal BindVars As String) As ADODB.Recordset
    2. '###############################################################################
    3. '   Description : XXX
    4. '
    5. '   Return      : An ADO record set.
    6. '###############################################################################
    7.  
    8. Dim lrs As ADODB.Recordset
    9. Dim cmd As ADODB.Command
    10. Dim stream As ADODB.stream
    11. Dim streamOut As ADODB.stream
    12.     If basADO_Tools.OpenDBConn(gconnfodb, basGlobal.GetConnectionString("RESEARCH")) Then
    13.        
    14.         'Retrieve the file and update the parameter value
    15.         Set stream = New ADODB.stream
    16.         stream.Charset = "iso-8859-1"
    17.         stream.Type = adTypeText
    18.         stream.Open
    19.        
    20.         Set streamOut = New ADODB.stream
    21.         streamOut.Charset = "iso-8859-1"
    22.         streamOut.Type = adTypeText
    23.         streamOut.Open
    24.  
    25.         'stream.WriteText BindVars, adWriteLine
    26.         stream.LoadFromFile ("c:\BindVars.xml")
    27.        
    28.  
    29.         Set cmd = New ADODB.Command
    30.         gconnfodb.CursorLocation = adUseServer
    31.         With cmd
    32.              Set .ActiveConnection = gconnfodb
    33.             .Properties("SPPrmsLOB") = True
    34.             .CommandText = "PK_XML_UTILITIES.P_GET_XML"
    35.             .CommandType = adCmdStoredProc
    36.             .Parameters.Append cmd.CreateParameter("PV_QUERY", adVarChar, adParamInput, 8000, SQLString)
    37.             .Parameters.Append cmd.CreateParameter("PV_XSLT_FILENAME", adVarChar, adParamInput, 255)
    38.             .Parameters.Append cmd.CreateParameter("PC_XML", adLongVarChar, adParamOutput, 900000000)
    39.             .Parameters.Append cmd.CreateParameter("PC_BINDS_XML", adLongVarChar, adParamInput, stream.Size + 1, stream.ReadText)
    40.             .Execute
    41.         End With
    42.         Set RunFODBPackage = lrs
    43.     End If
    44. End Function

    The error occurs when the line ".Execute" runs. Does anybody know how to get around this problem?

    Thanks in advance

  2. #2
    Member Max bayne's Avatar
    Join Date
    Jul 2006
    Location
    Egypt
    Posts
    59

    Re: Not enough storage is available to complete this operation error

    plz illustration what do you want to can help you man

  3. #3
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: Not enough storage is available to complete this operation error

    check your server for hard disk space. either that or its in the client side. but this is most probably a server side error where the server has run out of hard disk space in which the database file is stored.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width