What sequences of characters can be used in MICROSOFT JET SQL as names of tables and columns.

Posted on 2008-10-22
Last Modified: 2012-05-05
Please give me a URL of a page where I can find a formal criterion that helps me determine if the string can or cannot be used instead of <<NAME>> placeholders in here:
SELECT <<NAME>> as <<NAME>> FROM <<NAME>> as <<NAME>>

I am talking about MS JET SQL.

Question by:midfde
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22780321

It really does not have to be hard: use only letters, numbers, and underscores.  Some Experts even eschew
underscores.  Further, avoid reserved words: SELECT, UPDATE, Date, Format, any of the key commands
in SQL or names of functions.

LVL 119

Expert Comment

by:Rey Obrero
ID: 22780323

Author Comment

ID: 22780476
OK, I know that the following strings CAN be used as object names:
[Select], [My table], [Include?]
I am not sure about a name with the length, say, 500 characters; or about
and so on.
My program has to determine if a string will be later accepted by JET engine. It (the program) just wants to follow a set of "formal" rules to be able to point user to a right direction to meet these rules.
Please try to help me one more time. (The list of key words looks irrelevant to the issue).
LVL 119

Expert Comment

by:Rey Obrero
ID: 22780537
from the Access window click Help
type specification in the box

click on Access Specifications

Author Comment

ID: 22780718
Looks closer to what I need. It's at least a document to refer to. But it's not exactly what I am looking for:
Please see the title of my question. It implies more than just max length.
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

LVL 119

Expert Comment

by:Rey Obrero
ID: 22780826
be more explicit

Author Comment

ID: 22780993

capricorn1, specifications you are referring to instruct me that max length of the name is 64.
It does not say whether the following sequences of character are valid sql names:
      ["How are you doing?" - John asked]
FROM [I am all right. Thanks.]  
ORDER BY [order by]
And I am looking for a document that explicitly states what... see the title of my question.
LVL 119

Accepted Solution

Rey Obrero earned 500 total points
ID: 22781125
from the same help file type naming objects
then select
Guidelines for naming fields, controls, and objects
LVL 44

Expert Comment

ID: 22781143
Have a look at for reserved words.  There is such a wide variety of naming conventions it is probably best to Google - MS SQL naming conventions.

Author Closing Comment

ID: 31508918

Yes, thanks, it is the best answer although it's not exactly what the rules should be. This however is a usual blunder of MS, not of yours, capricorn1.

The rewarded answer is  

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now