SQL Server
(1)
CREATE TABLE
(1)
Table
(1)

How does UPDATE statement work?

Asked By kdpo
11-May-07 01:59 AM
Could someone tell where I can find out if it is true that during
UPDFATE SQL Serve deletes data from table, and then inserts new one.

Thanks

-A

No that statement is not correct.

Asked By Tibor Karaszi
11-May-07 02:44 AM
No that statement is not correct. SQL Server will in many cases do an "update in place".

However, an update *might* be performed physically as a delete followed by an insert. For instance
when the row doesn't fit the old page, or if you are modifying the key that you are clustering over.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/

How does UPDATE statement work?

Asked By David Portas
11-May-07 05:01 AM
Replied in microsoft.public.sqlserver.server
Please do not multi-post.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--

Thank you.-A

Asked By kdpo
11-May-07 03:54 PM
Thank you.

-A
Post Question To EggHeadCafe