473,586 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

String Length And Error 3035

Error 3035 is "System Resource Exceeded"

I'm throwing this error in a procedure that creates a pass through
query. The procedure has worked tried and true for many years, first in
A97 and now in A2003, but for this particular use of it, I'm throwing
the above described error.

The variable declarations are thus:

Sub sCreatePT(strSq l As String, strQryName As String)

In the case in question, strSql is a largish Oracle SQL statement that
is 80,362 characters long.

Help says a fixed length string is limited to 64K, but I had always
assumed I was working with variable length strings?
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Mar 13 '06 #1
2 5733
On Mon, 13 Mar 2006 02:45:34 -0330, Tim Marshall
<TI****@PurpleP andaChasers.Moe rtherium> wrote:

On what line?

This test program works fine on my Access 2003:
Sub TestString()
Dim s As String
s = String$(90000, 65)
Debug.Print Len(s)
sCreatePT s, "test"
End Sub
Sub sCreatePT(strSq l As String, strQryName As String)
Debug.Print Len(strSql)
End Sub

-Tom.

Error 3035 is "System Resource Exceeded"

I'm throwing this error in a procedure that creates a pass through
query. The procedure has worked tried and true for many years, first in
A97 and now in A2003, but for this particular use of it, I'm throwing
the above described error.

The variable declarations are thus:

Sub sCreatePT(strSq l As String, strQryName As String)

In the case in question, strSql is a largish Oracle SQL statement that
is 80,362 characters long.

Help says a fixed length string is limited to 64K, but I had always
assumed I was working with variable length strings?


Mar 13 '06 #2
Tim Marshall wrote:
Error 3035 is "System Resource Exceeded"

I'm throwing this error in a procedure that creates a pass through
query. The procedure has worked tried and true for many years, first in
A97 and now in A2003, but for this particular use of it, I'm throwing
the above described error.

The variable declarations are thus:

Sub sCreatePT(strSq l As String, strQryName As String)

In the case in question, strSql is a largish Oracle SQL statement that
is 80,362 characters long.

Help says a fixed length string is limited to 64K, but I had always
assumed I was working with variable length strings?


If I create a query in the query builder, I might see something like
Select Table.ID, Table2.Name, Table.Address.. .

This is a stab in the dark...
Since your sub is passed a string and perhaps running a SQL statement,
can you chop off the table names where possible. You will have to
specify the table names where the field name exists in more than 1
table, but for those where the field names exist in only 1 table, remove
the qualifiers.

IOW, the code could look like
Select ID, Name, Address...

That might get it under any limitation you currently have on strings.
Just a stab...
Mar 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
490
by: sjanie | last post by:
The error code is: Microsoft JScript compilation error '800a03ec' Expected ';' /bicc.nl/Connections/BICCwebsite.asp, line 2 Set Conn = Server.CreateObject("ADODB.Connection") ----^
5
3869
by: NG | last post by:
Hi, We are having DB2-V7.2 DB on AIX 5.2 machine. Recently we upgraded our system to fixpack 13 and activated activate AIX asynchronous IO function. Our DB is going to crash recovery with this error 0xFFFFF707. I have attached the related details. Any suggestions is much appreciated.
1
11697
by: Manuel Lopez | last post by:
I get a run-time error 3035 ("system resources exceeded") running DAO code in XP x64 that works fine under 32-bit XP. It updates 405,000 records. Dim dbs as DAO.Database If dbs=Nothing Then Set dbs=CurrentDb() DAO.DBEngine.BeginTrans dbs.Execute "UPDATE tblFoo SET = + 50;", dbFailOnError '<<<<<< FAILS ON THIS LINE...
51
8251
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct code? many thx!
9
7119
by: rsine | last post by:
I have developed a program that sends a command through the serial port to our business system and then reads from the buffer looking for a number. Everything worked great on my WinXP system, but when I tried the program on the Win98 system it will be running on, I get the following error: Cast from string "2076719" to type 'Long' is not...
8
5207
by: KRoy | last post by:
I have a password stored in the Registry encrypted using System.Security.Cryptography DES Algorithm. I supplied it a password and a Initialization Vector. I am trying to decrypt it using the CryptoAPI in VB6. I am using the CryptDeriveKey to generate a session key from a password. But it is not working and I am sure the password is...
23
9492
by: comp.lang.tcl | last post by:
I have a TCL proc that needs to convert what might be a list into a string to read consider this: ]; # OUTPUTS Hello World which is fine for PHP ]; # OUTPUT {{-Hello}} World, which PHP will print literally as {{-Hello}} World, instead of
5
7209
by: Martin Jørgensen | last post by:
Hello again, Sorry to bother but I guess my C++ book isn't very good since it obviously contains errors so the program code doesn't work with g++. However I don't understand what the problem is. Last time the problem was that "using namespace std" apparently had a "link" class/object defined already. Now I get: error: no matching...
7
8568
by: Felix85 | last post by:
I am trying to make a command interpreter for a mud that i am working on the problem i am having right now is that i cannot convert the string into a char array. This is the error I am getting now: In file included from src/mud.cpp:3: src/command.h: In static member function `static void command::getCommand(std::string)':...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.