.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

Database: Define Identity Column?

Posted By :shankey     Posted Date :July 27, 2011    Points :40   Category :Sql Server 
Identity column is a column that automatically generates numeric values. Start and increment value are the two properties of prior importance that need to be set with respect to Identity column. Value of this column is mostly used to identify each row uniquely

You can also find related Interview Question to Database: Define Identity Column?  below: 

Database: State Can an Identity column be index?

  
No, Identity and GUID column do not need to be indexed. (More...)

More than one IDENTITY column per table can be exist in SQL Server . (True /False)

  
False.
There can only be one IDENTITY column per table in SQL Server.
Its auto Incremented Column defined by the user. (More...)

To find a particular column name where it exists in a database?

  
The Query to find the particular column name in a databse is,

SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'User_name' (More...)

Can we insert a value for the identity Column in Sql Server?

  
Yes, We can insert the value for Identity column

using SET IDENTITY INSERT ON

e-g


CREATE TABLE #Temp(ID INT IDENTITY, EmpName VARCHAR(255))

SET IDENTITY_INSERT #Temp ON
INSERT INTO #Temp(ID, EmpName)
Values(10, 'Alwyn Duraisingh.M')
SET IDENTITY_INSERT #Temp OFF
(More...)

Database: Define Stored Procedure

  
.A stored proceduer is a named group of sql statements that have been previously created and stored in server database. (More...)

Database: Define trigger?

  
It is a Stored procedure that initiates an action when an event occurs. Event can be insert, delete or update. (More...)

Database:Define cursor?

  
It is a object that manipulate data in a set row by row. (More...)

Database: Define collation?

  
Collation is a set of rules that defines how the data is to be sorted and compared. (More...)

Database: Define sub query

  
A sub-query is also refereed as sub-select, they are enclosed with in the body of another sql statement, Sub select statement generally return single row i.e atomic value and then compared with multiple rows using IN keyword in sql statement that encompases sub-select statement. (More...)

Database: Define primary key and foreign key?

  
Primary key is use to uniquely identify each row they are unique and cannot be null where as foreign key are use to ensure data integrity and relationship between tables. (More...)

Can Delete can reset the identity column?

  
No, It cannot reset the identity columns. (More...)

Database:Define SQL server agent

  

Its main aim is to ease the implementation of task for the dba with scheduleing of the jobs and scripts. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend