APPLY

Technical Article

RE: If PK is a GUID, what index type is best?

  • Reply

I think that having a GUID as a PK is an acceptable (didn't mention preferred) practice. Having it then clustered seems to make no sense whatsoever. I highly doubt that there are very many tables of GUID's that would have range queries ran against the GUIDs. (I'm sure there might be a few, but doubt […]

You rated this post out of 5. Change rating

2003-07-10

1 reads

Technical Article

RE: If PK is a GUID, what index type is best?

  • Reply

Hi, This is slightly off topic but why is using a GUID for a PK considered bad practice? We use replication so GUID's as PK's (not clustered) are the way to go but I wouldn't have thought they had a particular downside. Is it because they a bigger that an identity column? Cheers, Peter

You rated this post out of 5. Change rating

2003-07-10

1 reads

Technical Article

RE: Select 2 lines into 1

  • Reply

As alphaindex pointed out, INSERT creates a new row each time. You can solve it via alphaindex's solution or change your second INSERT to an UPDATE. INSERT to create the row with part of the data and then UPDATE it with the rest of the data. -SQLBill

You rated this post out of 5. Change rating

2003-07-09

1 reads

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