Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum SQL

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
GB
Hey all,

Does anyone know if access has a SQL maximum query size (in terms of the code) because either the program i use to query it is stopping me typing or Access is?

It is one huge report, and i dont want to have to see if i can fit it in or not (i hate cramped code)

D

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
 
One way to shorten sql code is to use aliases like this:
SELECT A.Field1, B.Field2
FROM [name of 1st table] A INNER JOIN [name of 2nd table] B
ON A.PKfield=B.FKfield
instead of:
SELECT [name of 1st table].Field1, [name of 2nd table].Field2
FROM [name of 1st table] INNER JOIN [name of 2nd table]
ON [name of 1st table].PKfield = [name of 2nd table].FKfield

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Many people claim that a definite limit exists. However, I have run union queries that returned more than one million separate records (they ran VERY slowly, but they did run). Personally, I don't think that a predetermined limit exists.
 
thanks again PHV - it might be worth a try :)

Sorry OhioSteve - it was actually the code that has a limit not the output.

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top