ACC97: Out of Memory Error Viewing ASP Page with a Large SQL Statement (191099)
The information in this article applies to:
- Microsoft Access 97
- Microsoft Internet Information Server 3.0
- Microsoft Visual Basic, Scripting Edition 2.0
- Microsoft Active Server Pages
This article was previously published under Q191099 Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
When you browse to an Active Server Pages (ASP) file that was exported from
Microsoft Access 97, and the file contains a large query, you may receive
the following error message:
Microsoft VBScript compilation error '800a03e9' Out of Memory
CAUSE
The ASP page contains a query that exceeds the 1,022 character line limit
set by VBScript and you are using the Microsoft products listed at the
beginning of this article.
RESOLUTION
To correct this problem, you must first open the .ASP file using Notepad or
another text editor, and break the SQL string into smaller segments. For
example, assume that you have the following select statement within your
ASP file:
sql = "Select * from MyTableName where FieldName = 'aaaa'"
This statement should be modified as follows:
sql = "Select *"
sql = sql & " from MyTableName"
sql = sql & " where FieldName = 'aaaa'"
REFERENCES
For more information about the VBScript limit of 1022 characters, please
see the following article(s) in the Microsoft Knowledge Base:
174634 PRB: VBScript Compilation Error Message '800a03e9' Out of
Memory
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kberrmsg kbprb KB191099 |
---|
|