Terminology Flashcards
SQL
Structured Query Language
T-SQL
Transact-Structures Query Language
Record
A set of fields in a row
Field
One or more characters of related information of the same data type
Schema
A schema is a collection of database objects including tables, views, triggers, stored procedures, indexes, etc. A schema is associated with a username which is known as the schema owner, who is the owner of the logically related database objects.
View
A View is a virtual table whose contents are defined by a query.
Like a table, a view consists of a set of named columns and rows of data. Unless indexed, a view does not exist as a stored set of data values in a database.
The rows and columns of data come from tables referenced in the query defining the view and are produced dynamically when the view is referenced.
Collation
Collations in SQL Server provide sorting rules, case, and accent sensitivity properties for your data.
SQL Server includes a large set of collations for handling the language and regional differences that come with supporting users and applications in different parts of the world.
How many data types?
30
char(n)
Fixed width character string
Max= 8000 characters
defined width
varchar(n)
Variable width character string
Max=8000 characters
2 bytes + # of chars
varchar(max)
Variable width character string
Max=1,073,741,824 characters
2 bytes + # of chars
text
Variable width character string
Max=2GB of text data
4 bytes + # of chars
nchar
Fixed width Unicode string
Max=4000 characters
defined width x 2
nvarchar
Variable width Unicode string
Max=4000 characters
nvarchar(max)
Variable width Unicode string
Max=536,870,912 characters
ntext
Variable width Unicode text
Max=2GB text data