Discussion Overview
The discussion centers around the appropriate data types for storing web addresses and phone numbers in a database, specifically in the context of MSSQL 2014. Participants explore various approaches, standards, and challenges related to data storage for these types of information.
Discussion Character
- Technical explanation
- Debate/contested
- Exploratory
Main Points Raised
- Some participants suggest using string types like varchar for storing web addresses and phone numbers, noting that phone numbers are essentially strings of digits.
- Others highlight the lack of universal standards for phone number formats and web addresses, pointing out that local preferences often dominate design choices.
- A participant mentions specific RFC standards (RFC7230 for web addresses and RFC3966 for phone numbers) and recommends varchar(8000) and varchar(22) respectively.
- There is a discussion about the possibility of storing web addresses as clickable links in MSSQL 2014, with some uncertainty about the capabilities of the database engine versus GUI tools.
- Participants express differing opinions on how to handle non-unique phone numbers, suggesting normalization and the use of primary keys to manage conflicts.
- When discussing street addresses, some propose breaking the address into components for better normalization, while others raise concerns about the complexity of international address formats.
- There is a debate about the appropriate character types for international addresses, with some advocating for nvarchar due to its support for Unicode.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the best practices for data types, as multiple competing views and approaches are presented throughout the discussion.
Contextual Notes
Limitations include the absence of universally accepted standards for phone numbers and web addresses, as well as the challenges in normalizing street addresses, particularly for international formats.