Car Update

Technical Article

RE: Accessing all rows in an Update Trigger

  • Reply

I believe you could simply do something like IF NOT UPDATE(col_one) RETURN --if one of the rows was updated then use something like... SELECT * FROM inserted i, deleted d WHERE i.id = d.id AND IsNull(i.col_one, 'blah') != IsNull(d.col_one, 'blah') I'm not certain what you are doing with rows that change but if you can't […]

You rated this post out of 5. Change rating

2003-06-11

Technical Article

RE: Accessing all rows in an Update Trigger

  • Reply

quote: I'm confused, or more likely misreading the problem. Won't "IF Update(column_name)" be either true for all rows affected in a set-based update, or false for all rows? I think you are misreading it. The Inserted table and Deleted table contains ALL rows affected by the update. When you use IF update(column_name) it does return […]

You rated this post out of 5. Change rating

2003-06-10

Technical Article

RE: Date extracting

  • Reply

Here is another alternative: select cast((convert(char(13),getdate(),120) + ':00:00.000') as datetime) Gregory Larsen, DBA If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples

You rated this post out of 5. Change rating

2003-05-27

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers