ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
How to Get the last identity value used
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to Get the last identity value used
Answer
# 1
the last identity value used in an insert can be retrieved 
with the @@identity function.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: How to Get the last identity value used
Answer
# 2
select @@identity

@@identity is global variable
 
Is This Answer Correct ?    0 Yes 0 No
Laxman
 
 
 
  Re: How to Get the last identity value used
Answer
# 3
dbcc checkident(table)
 
Is This Answer Correct ?    0 Yes 0 No
J.m.
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
Explain the new features of SQL server 2000?  1
SYNTAX FOR VIEWS WITH EXAMPLE HOW TO LINK TWO TABLES Microsoft1
What is the difference between constraints and triggers? Wipro5
what is Data Transformation Services (DTS) ?can u explain me in detail? TCS4
how to get 25th row in any table in sqlserver can u tell me syntax  4
How do you find the number of rows in a table?  5
How to Generate a Series of Random Integers With T-SQL?  1
How to list all tables having unique constraints in any of the columns in a database.  1
What is the difference Between Sql-server 2000 & 2005 Value-Labs1
Which data type can be used only on OUTPUT parameters of the stored proceduer?  2
What are sub-queries? Give example? In which case sub-queries are not feasible? Infosys1
what are the problems in logshipping?  2
any one can explain Self mapping Delegation Remote Credentials  1
how to delete duplicate rows from table CSC2
Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???  3
The Difference between 'Count' and 'Count(*)'  8
What is ACID Property of Transaction?  3
what is index seek and index scan?  2
What is the difference between temp table and table variable? Microsoft3
How do we rollback the table data in SQL Server  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com