Temporary Table

Technical Article

RE: deadlock issue

  • Reply

Firstly are you sure you got a deadlock? You got the message that your transaction has been chosen as the victim? Just want to be sure as a lot of people confuse blocking with deadlocks.So if you have a deadlock then i think you need au unclustered index on state at least.Run the query through […]

You rated this post out of 5. Change rating

2005-04-01

Technical Article

RE: Problem with DEFAULT in #TempTable

  • Reply

HiIn your example, you are forcing srt1 and srt1nm to be NULLSELECT 12345 AS award_id, 0.95 AS sumpro, NULL AS srt1, NULL AS srt1nm, NULL AS srt2, NULL AS str2nm, NULL AS srt3, NULL AS srt3nm, @time AS time_run INTO #out But if you don't force it and NULL values can come as valid values […]

You rated this post out of 5. Change rating

2005-03-31

Technical Article

RE: Need help with tsql syntax

  • Reply

something like this should work if your indexes are clean select account_number from table1 Where InactiveFlag=1 AND ( Account_number IN ( Select Distinct AccountNumber From table2 ) OR Account_number IN ( Select Distinct AccountNumber From table3 ) OR Account_number IN ( Select Distinct AccountNumber From table4 ) )

You rated this post out of 5. Change rating

2005-03-03

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