Create Database
Go
Use
Go
Create Table Infosysemployees1
(
ID
Name
)
Go
Insert Into Infosysemployees1 Values (default,'
Insert Into Infosysemployees1 Values (default,'
Now select the data from the Infosysemployees1 table as follows.
Select * From
Now create another table as follows.
Create Database
Go
Use
Go
Create Table wiproemployees1
(
ID
Name
)
Go
Insert Into wiproemployees1 Values (default,'
Insert Into wiproemployees1 Values (default,'
Now select the data from wiproemployees1 table as follows.
Select * From
Now create another table to consolidate above two
Create Database
Go
(
)
Select * From
Select * From
Now select the data from employees1 table as follows.
So when we performed union all with the identity we got an error in this way. The GUID is globally unique across the tables, databases, servers.
Note:
The GUID is the large data type in SQL server.
GUID size is 16 bytes, where as INT size is 4 byes.
It's really hard to read when compared to INT.
GUID IN SQL SERVER PART - 1
No comments:
Post a Comment