data protection

Technical Article

RE: Lost Update Problem in SQL Server

  • Reply

To solve this you could use the HOLDLOCK and XLOCK locking hints, and run the select and update in a transaction. You could also implement some optimistic concurrency handling this yourself, I give some examples of this in my article Dealing with changing data (http://qa.sqlservercentral.com/columnists/chedgate/dealingwithchangingdata.asp). Also check Isolation Levels in BOL.

2005-04-04

Technical Article

RE: How do I delete the corresponding row?

  • Reply

Please copy the whole SQL again from my previous post, I have edited it in several places. sickid was changed to minsickid in the JOIN "ON" clause and also in the WHERE clause.If you still have problems, wait a minute till I create the tables here and some sample data, so that I can test […]

2005-03-31

Technical Article

RE: Triggers : Name references "inserted"

  • Reply

In BOL, type "triggers" in the Index, and open the section titled "inserted tables": Using the inserted and deleted TablesTwo special tables are used in trigger statements: the deleted table and the inserted table. Microsoft® SQL Server™ 2000 automatically creates and manages these tables. You can use these temporary, memory-resident tables to test the effects of […]

2005-03-17

Technical Article

RE: Access via User Groups

  • Reply

The group shouldn't be a SQL login. It should be a Windows login. Also, it must be a global or universal domain group. Verify the group in question isn't a local domain group. Local domain groups are not accessible outside of the domain.

2005-03-16

Technical Article

RE: Need help with tsql syntax

  • Reply

Then again, here is article that might shed some light on speed and efficiency. http://archives.postgresql.org/pgsql-performance/2002-12/msg00185.php seems that exists is better on larger sub-selects, where as in can be better on smaller sub-selects

2005-03-03

Technical Article

RE: Import external data

  • Reply

Insert into a temp table that will be blown away. Then create an "unmatched" query by left joining my existing table with the temp table. Off the top of my head INSERT INTO tblExistingTable (Field1, Field2,etc..) SELECT TT.Field1, TT.Field2, TT.Field3 FROM #TempTable AS TT LEFT JOIN tblExistingTable AS ET ON TT.SomeUniqueField = ET.SomeuniqueField --THis is […]

2005-02-15

Blogs

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...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

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