Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql 2005

Author  Topic 

aidmondo
Starting Member

23 Posts

Posted - 2012-05-09 : 18:30:06
How do i create a column for phone in sql management studio in the format [0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9]

aidmondo

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-05-09 : 18:34:58
Use varchar(however many chars that is) and put a check constraint on it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -