Covering Indexes

Technical Article

CASE With a Calculated Value

  • Topic

I'm trying to calculate a value and use that calculated value in a CASE statement without repeating it for each WHEN statement because of it's size and not wanting to cause processing to bog down.  I've attemted the T-SQL below but get an error and the first inequality statement.  Any help would be appreciated.SUM(CAST(ISNULL(o.Qty, 0) […]

You rated this post out of 5. Change rating

2004-07-14

21 reads

Technical Article

RE: DTS date stamp

  • Reply

Try these steps..1. Map the file location as a drive (like F:\folder) to the server where the sql  server is running. Specifying direct server path does not work.2.  Run 'dcomcnfg' exe and add in the account that SQL Server agent is running under. If it is running unde SA account, then choose 'Everyone'.Hope this helps!!!-sundar

You rated this post out of 5. Change rating

2004-07-14

Technical Article

sp_indexes_rowset

  • Topic

I have a stored procedure that is being executed constantly on the server , but is not being called from any of the asp code.  I looked up this proc and found it is and undocumentated  sp that will return detail information on the indexes of a table.Trace information:  ( the trace shows hundreds of […]

You rated this post out of 5. Change rating

2004-07-07

174 reads

Technical Article

RE: Clustered Indexes

  • Reply

Hi acudlip, quote: 1) drop the non-clustered indexes (takes seconds) - to avoid their rebuild when the clustered index is dropped. 2) drop the clustered index - takes 6 hours!! This is approx equal to the time it takes to build the clustered index - its a big table. how do you drop the indexes? […]

You rated this post out of 5. Change rating

2003-07-15

Blogs

Step Up Your Data Game: Learn Advanced SQL Techniques for Analysis

By

In the modern data-centric landscape, SQL stands out as the dominant tool. It's essential...

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

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