What datatype should be used for storing phone numbers in SQL Server 2005?

前端 未结 16 2060
情话喂你
情话喂你 2020-11-28 05:29

I need to store phone numbers in a table. Please suggest which datatype should I use? Wait. Please read on before you hit reply..

This field needs

16条回答
  •  鱼传尺愫
    2020-11-28 05:33

    I realize this thread is old, but it's worth mentioning an advantage of storing as a numeric type for formatting purposes, specifically in .NET framework.

    IE

    .DefaultCellStyle.Format = "(###)###-####" // Will not work on a string
    

提交回复
热议问题