Re: int or char for area code and phone number
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 11/22/04
- Next message: Paul S Randal [MS]: "Re: DBCC My.dll (FREE)"
- Previous message: Colleen Rossman: "FIXED! xp_sendmail works from QA but not from DTS package"
- In reply to: ChrisR: "int or char for area code and phone number"
- Next in thread: ChrisR: "Re: int or char for area code and phone number"
- Reply: ChrisR: "Re: int or char for area code and phone number"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 13:44:10 -0500
Personally, I would just use CHAR; you won't be doing any calculation on the
data (SUM/AVG/arithmetic/etc). It's for display only. So you'll need to
eventually convert it to a string anyway. There is no reason I can think of
to store it as an integer. What are your arguments for the integer (or your
boss', if that's his position)?
-- Adam Machanic SQL Server MVP http://www.sqljunkies.com/weblog/amachanic -- "ChrisR" <bla@noemail.com> wrote in message news:emiinJM0EHA.1452@TK2MSFTNGP11.phx.gbl... > Our table is currently using char for the area code and phone numbers. My > boss and I were having a debate about using int or char for these type of > columns. What are the pros/ cons to using both types of data for these? > > -- > SQL2K SP3 > > TIA, ChrisR > >
- Next message: Paul S Randal [MS]: "Re: DBCC My.dll (FREE)"
- Previous message: Colleen Rossman: "FIXED! xp_sendmail works from QA but not from DTS package"
- In reply to: ChrisR: "int or char for area code and phone number"
- Next in thread: ChrisR: "Re: int or char for area code and phone number"
- Reply: ChrisR: "Re: int or char for area code and phone number"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|