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

  • Home
  • SEARCH
  • 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 494223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:28:38+00:00 2026-05-13T05:28:38+00:00

What should i know about involving basic data types in SQL Server? In my

  • 0

What should i know about involving basic data types in SQL Server?

In my database i need

  1. Flags/bits, I assume I should use byte
  2. 64bit ids/ints
  3. a variable length string. It could be 5 letters it could be 10,000 (for desc but i plan to allow unlimited length usernames)

Is there a TEXT type in SQL Server? I dont want to use varchar(limit) unless i could use something ridiculously high like 128k. How do i specify 1byte – 8byte ints?

  • 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-13T05:28:38+00:00Added an answer on May 13, 2026 at 5:28 am

    For 1), use BIT – it’s one bit, e.g. eight of those fields will be stuck into a single byte.

    For 2), use BIGINT – 64-bit signed int

    For 3), definitely do NOT use TEXT/NTEXT – those are deprecated as of SQL Server 2005 and up.

    Use VARCHAR(MAX) or NVARCHAR(MAX) for up to 2 GB of textual information instead.

    Here’s the list of the SQL Server 2008 data types:

    http://msdn.microsoft.com/en-us/library/ms187594.aspx

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

Sidebar

Related Questions

Are there any VC++ settings I should know about to generate better PDB files
Are there any open-source libraries that all programmers should know about? I'm thinking something
What are all the common undefined behaviours that a C++ programmer should know about?
I have asked What should i know about search engine crawling? Now i would
What websites do you know about developing DB? It should have a lot of
Just wanted to know what could be the security cautions I should know about
I always run into confusion with who should know about the other. for example:
I am wondering how much of Ulrich Drepper's What Every Programmer Should Know About
I've been reading Ulrich Drepper's, What every programmer should know about memory and in
Is there anything I should know about using strtok on a malloced string? In

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.