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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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).
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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.
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Accepted Solution

Rey Obrero (Capricorn1) 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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