PC Review


Reply
Thread Tools Rate Thread

2-3 words in field name

 
 
Goran
Guest
Posts: n/a
 
      20th Dec 2006
Can I define field names with more words in Access and SQL Server like
field: "Bus station" instead "BusStation" or "Bus_Station"? I have had
problems because of this in VB6. Can I have problems in VB 2005 or C# 2005
and SQL Server?


 
Reply With Quote
 
 
 
 
Erland Sommarskog
Guest
Posts: n/a
 
      20th Dec 2006
Goran ((E-Mail Removed)) writes:
> Can I define field names with more words in Access and SQL Server like
> field: "Bus station" instead "BusStation" or "Bus_Station"? I have had
> problems because of this in VB6. Can I have problems in VB 2005 or C# 2005
> and SQL Server?


Yes you can. You need to enclose the name in brackets [] or double quotes ""
whenever you use it.


--
Erland Sommarskog, SQL Server MVP, (E-Mail Removed)

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
 
Reply With Quote
 
Dave Sexton
Guest
Posts: n/a
 
      20th Dec 2006
Hi,

It's not recommended though.

You shouldn't use the field names as captions if you want something more
readable. For instance, if you're using a DataSet you can assign the
Caption property to something other than the field name. In grids you can
easily set the headers at design-time.

--
Dave Sexton

"Goran" <(E-Mail Removed)> wrote in message
news:emat1f$90e$(E-Mail Removed)...
> Can I define field names with more words in Access and SQL Server like
> field: "Bus station" instead "BusStation" or "Bus_Station"? I have had
> problems because of this in VB6. Can I have problems in VB 2005 or C# 2005
> and SQL Server?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seperate words in a field Okstate student Microsoft Access 3 26th Jan 2008 12:08 AM
2-3 words in field name Goran Microsoft VB .NET 2 20th Dec 2006 10:06 AM
2-3 words in field name Goran Microsoft ASP .NET 2 20th Dec 2006 10:06 AM
How ban I change words in a field? Dimitris Microsoft Access Getting Started 7 12th Jul 2005 06:53 PM
Total words in a field =?Utf-8?B?RGFycmVu?= Microsoft Access Queries 12 25th Feb 2005 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 PM.