473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

access subquery not enough storage is available to complete this operation

access subquery error: "not enough storage is available to complete
this operation"
Query---

SELECT
TOP 100 PERCENT
UPPER(dbo.Employee.last + N', ' + dbo.Employee.first) AS Employee,
Employee.employeeNumber

FROM
(SELECT DISTINCT
TOP 100 PERCENT
Employee.employeeNumber
FROM
Courses INNER JOIN
Inservices ON dbo.Courses.courseNumber = Inservices.courseNumber INNER
JOIN
Register ON Inservices.courseCounter = Register.courseCounter INNER
JOIN
Employee ON Register.employeeNumber = Employee.employeeNumber
WHERE
(Courses.courseDescription = N'yyyyy')
AND
(Employee.terminationDate IS NULL)
AND
(Register.attendedWorkshop = N'yes')
) AttendedTraining
RIGHT OUTER JOIN Employee ON AttendedTraining.employeeNumber =
Employee.employeeNumber
WHERE
(AttendedTraining.employeeNumber IS NULL)
AND
(Employee.terminationDate IS NULL)
AND
(NOT (Employee.employeeNumber IN (0, 1)
)
)
ORDER BY Employee.last + N', ' + dbo.Employee.first

When I try to add AttendedTraining.employeeNumber I get the error
noted. I can add Employee.employeeNumber (or any other column for that
matter) from the real table.

Any thoughts? The query acts normally when not nested, i.e. the
AttendedTraining base query works normally. Is this just a limitation
with access or what? Thanks!

Jeff

Nov 13 '05 #1
5 4332
is there a reason you're using the TOP predicate and specifying 100%?
that's insane. Why not just use a plain SELECT?

Nov 13 '05 #2
uj*****@charter.net wrote in
news:11**********************@z14g2000cwz.googlegr oups.com:
access subquery error: "not enough storage is available to
complete this operation"


My guess is that you've not got enough free disk space on the drive
where your TEMP directory is located. To find out where that is, in
a the START | RUN command prompt, type %TEMP%, which will open
Windows explorer pointing to the folder that is referenced by the
TEMP variable. Then check to see how much space is available on that
drive.

I prefer to have the TEMP folder on any drive but the one the OS is
running on, since I like to keep nothing but the OS installed on
that drive (I usually put the TEMP folder on the same drive as the
programs are installed).

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3
Access throws that in by default, drives me nuts too.

Nov 13 '05 #4
p.s., if I opened it in SQL I could do what ever I want to it. I
wonder if this is a bug?

Nov 13 '05 #5
In answer to:
is there a reason you're using the TOP predicate and specifying
100%? that's insane. Why not just use a plain SELECT?
uj*****@charter.net wrote in
news:11**********************@g47g2000cwa.googlegr oups.com:
Access throws that in by default, drives me nuts too.


Uh, no, Access does nothing of the sort.

Open the query in design view, go to the query properties and remove
everything from the TOP setting.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6

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

Similar topics

1
by: Keiran Reilly | last post by:
We have a site running on w2k, IIS5.0. The problem is that the site intermittently stops working and returns the error "Not enough storage is available to complete this operation.". This is only...
1
by: KWINTERS | last post by:
I have a 2GB Ram, Win2K SP4, SQL 2K SP3, 2 1.8GHz AMD processor server that is getting occasional "not enough storage space to complete this operation" errors on certain ASP pages. The only way...
0
by: SuryaPrakash Patel via SQLMonster.com | last post by:
Dear Reader.... I am working on sql server 2000. while trying to save a diagram it gives me following message: Not enough storage is available to complete this operation. This occurs once in...
0
by: TK2828 | last post by:
Hi all, I got System.OutOfMemory exception : not enough storage available to complete this operation, whenever I called ActiveDs.ADsSecurityUtilityClass.GetSecurityDescriptor function from my C#...
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
55
by: AnandaSim | last post by:
I just had a google through this NG but have not seen mention of Erik Rucker's blog entry and the new Jet: http://blogs.msdn.com/access/archive/2005/10/05/477549.aspx mentioned by Mike...
2
by: webspinner | last post by:
I'm trying to develop a web service using C# and everytime I try to instantiate a NotesSession object like so: m_session = new NotesSessionClass(); the object throws an exception with the...
3
by: Mark | last post by:
Hello, Recently I have not been able to open an asp.net page in MDE's web from designer. I recieve the following error: "The file failed to load in the web from designer. Please correct the...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.