Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Spaces in field/db name in Access DBs
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

betheball
Starting Member

USA
41 Posts

Posted - 07 February 2003 :  20:19:35  Show Profile
Just a general DB question. I have read many times that you should not put spaces in field names, like date_of_birth not date of birth. Why is that? Second, and more importantly for my purposes, is it a problem to have a space in the name of the db itself? I noticed the db for this forum is snitz_forums_2000.mdb not snitz forums 2000.mdb. What are the problems/consequences of having spaces. We have a large administrative db at work and I am going to create some ASP pages that use much of that data. The name of the db has a space on it and if that will be a problem, I want to make sure i request the name be changed before running into problems.

- Duane

"So I got that going for me, which is nice." - Carl Spackler

Edited by - ruirib on 07 February 2003 21:15:23

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 07 February 2003 :  21:21:02  Show Profile  Send ruirib a Yahoo! Message
Though you can have spaces in objects names in Access (tables, table columns, forms and such) I think that is simply not worth the trouble. Having spaces in the names of the columns, will force you to use the name inside [] whenever referring to the columns in SQL statements. That enough should be a strong reason to avoid it. There are similar problems when using other Access objects names with spaces.

I don't seem to remember any problems with using spaces in the Db file names. Anyway I prefer not to use them.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 07 February 2003 :  22:35:07  Show Profile
Thanks Ruirib. I have put that into practice as well. Unfortunately I don't have ownership over this particular db and may not be able to persuade the owner to change it.

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 February 2003 :  00:02:09  Show Profile  Send ruirib a Yahoo! Message
You're welcome.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 08 February 2003 :  14:24:44  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
May I also recommend not starting table names and fields with numbers, as that could cause you to also have to use [] around them.

v ø d k â f ï § h
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07