Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
1> create table abc
(col_id numeric(10,0) identity, username varchar(30) not null)
3> go
create unique clustered index abc_ind1 on abc (col_id)
go
3> sp_help abc
4> go
Name Owner Object_type
------------------------------ ------------------------------ --------------------------------
abc dbo user table
(1 row affected)
Data_located_on_segment When_created
------------------------------ --------------------------
default Jun 19 2003 7:08PM
Column_name Type Length Prec Scale Nulls Default_name Rule_name Access_Rule_name Identity
--------------- --------------- ----------- ---- ----- ----- --------------- --------------- ------------------------------ --------
col_id numeric 6 10 0 0 NULL NULL NULL 1
username varchar 30 NULL NULL 0 NULL NULL NULL 0
index_name index_description
index_keys
index_max_rows_per_page index_fillfactor index_reservepagegap index_created
-------------------- --------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------
----------------------- ---------------- -------------------- -------------------
abc_ind1 clustered, unique located on default
col_id
0 0 0 Jun 19 2003 7:09PM
(1 row affected)
No defined keys for this object.
Object is not partitioned.
Lock scheme Allpages
The attribute 'exp_row_size' is not applicable to tables with allpages lock scheme.
The attribute 'concurrency_opt_threshold' is not applicable to tables with allpages lock scheme.
exp_row_size reservepagegap fillfactor max_rows_per_page identity_gap
------------ -------------- ---------- ----------------- ------------
0 0 0 0 0
(1 row affected)
concurrency_opt_threshold optimistic_index_lock
------------------------- ---------------------
0 0
(return status = 0)
1> insert abc values ('first record')
2> insert abc values ('second record')
3> insert abc values ('third record')
4> go
(1 row affected)
(1 row affected)
(1 row affected)
1> select * from abc where col_id = 2
2> go
col_id username
------------- ------------------------------
2 first record
(1 row affected)
[/color]
1> create table abc (name varchar(30) not null)
2> go
1> insert abc values ('first row')
2> insert abc values ('second row')
3> insert abc values ('third row')
4> go
(1 row affected)
(1 row affected)
(1 row affected)
1> alter table abc add col_id numeric(10,0) identity
2> go
1> select * from abc
2> go
name col_id
------------------------------ -------------
first row 1
second row 2
third row 3
(3 rows affected)