I'd just store it as a text.. another option would be to store it as a
number and use CF to format it correctly


On 1/3/06, Brian Coleman <[EMAIL PROTECTED]> wrote:
> I have a CF application I'm working on and part of the application has entry 
> of phone numbers. I think this may be related more to the database (SQL 2k) 
> or maybe DB design.
>
> My phone fields are broken up into 3 parts, area code, prefix and phone 
> number. Each of those sections are a field in the DB, so 3 fields for a phone 
> number. The fields are integer type.
>
> My problem is that when someone has a phone number where the number or prefix 
> starts with a 0 or two 0's or whatnot, the 0's will get stripped out. I 
> suppose I could change it to text and that would accept the 0's, but is there 
> any other way to make a SQL field take numbers starting with 0?
>
> Thanks,
> Brian
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to