Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:24:03+00:00 2026-05-13T18:24:03+00:00

I am developing a contact manager application using SQL Server 2008 (service-based database) .

  • 0

I am developing a contact manager application using SQL Server 2008 (service-based database) . Most contacts have several emails or several phone numbers. So is there a way to store an array as a datatype in SQL Server? Or does anyone have an alternative to this way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:24:03+00:00Added an answer on May 13, 2026 at 6:24 pm

    You’ll want to create separate tables, with a row per contact number or email address.

    CREATE TABLE Contacts (contactId int, name varchar(128), etc, etc
    CREATE TABLE ContactEmail (contactId int, emailAddress varchar(128), etc
    CREATE TABLE ContactPhone (contactId int, phoneNumber varchar(128), etc
    

    This will allow you to modify individual numbers/emails, remove them, add them, etc, without requiring an external program to unpack an array.

    But if you really want to store it denormalized, you could transform the array into a delimited string. . put a delimiter between each email address (with the appropriate magic to make sure an address doesn’t already contain the delimiter) then split it on the way back out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using grouped tableview for developing a contact list using database. I have
I am developing an application in xmpp.I have gmail and facebook contacts in a
I am developing a webpage using jquery and I have a contact form in
Hi I am developing a contact based application in that i want get the
I'm developing a desktop application with AIR. I wanted to have a contact window
I am developing a mobile application using phonegap and jquery mobile. I have this
I am developing a web application using JSF and JPA(Eclipse link). I have two
I am developing an Android application. This app deals with contact information (name, number,
I am developing a Contacts Application for Android. Now how can I replace Default
I am developing an application that uses system activity to add a contact to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.