Whats New in Microsoft SQL Server 2000 (i)

Source: Internet
Author: User
Tags integer microsoft sql server
Server New data type
After adding four new data types to SQL 7, SQL 2000 provides two new types of data, bigint and sql_variant respectively.
In today's increasing volume of data, int ( -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647)) is used to denote integers that sometimes seem to be less than enough
Use, float is not very suitable, so VB 7 and SQL 2000 have a new integer type, this is bigint, it is the 8bytes integer type, the range is -2^63
(-9223372036854775808) to 2^63-1 (9223372036854775807).

As anyone familiar with VBScript knows, VBS uses a data type called a Variant. It can store any data type, number, character, object, etc. Sql
The sql_variant in 2000 has not yet been so powerful that it cannot store BLOB data, such as text, ntext and image, and timestamp, but has given
Programming has brought a lot of convenience.

Note that previous versions of ADO support for both data types are incomplete, and to use both types of data in your program, use MDAC 2.6

Next Period Notice:
User-defined Functions

Appendix:
New data type for SQL 7.0

1. UniqueIdentifier
One of the new data types in SQL 7 is the globally unique flag (GUID) for records, just like the CLSID we often see.
00020803-0000-0000-c000-000000000046
D54eee56-aaab-11d0-9e1d-00a0c922e6ec
There is a function that can generate a new Guid:newid ()
2. Char & VarChar & Binary & VarBinary
The maximum length has changed significantly, with the maximum length of these two data types being 255, and now 8000, which appears to be the result of Microsoft Learning to Oracle
3. NChar & NVarChar & NText
New data type, Unicode character type



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.