Answer Posted / chandramohan
scope_identity() would be the currect answer. To avoid potential problems professionals suggests this method since it returns the recently added value.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages to use stored procedures?
Explain about merge replications?
Explain what are magic tables in sql server?
What are the advantages of passing name-value pairs as parameters?
Write a query for primary key constraint with identity key word?
Can foreign key be deleted?
Explain boyce and codd normal form(bcnf)?
How to create an index on an existing table in ms sql server?
What are the tables in sql?
How to query multiple tables jointly?
What are the mathematical functions supported by sql server 2005?
How do I install sql server?
Differentiate between SQL and ORACLE joins and write their syntax.
Explain the truncate command? : SQL Server Architecture
what's the maximum size of a row? : Sql server database administration