Stairway Series

Technical Article

RE: Complex Query -- Help needed

  • Reply

When I try this I get an error: SELECT Regions.Description, COUNT(oh.id) AS TotalOrders, SUM(CASE WHEN (ISNULL(oh.timedorder,0) = 0) THEN 1 ELSE 0 END) AS TotalASAP, SUM(CASE WHEN (oh.timedorder = -1) THEN 1 ELSE 0 END) AS TotalNOASAP, SUM(CASE WHEN (isnull(oh.quote_minutes,0) <=59) AND ISNULL(oh.timedorder,0) THEN 1 ELSE 0 END) AS fiftymins, SUM(CASE WHEN (oh.quote_minutes >= 60 […]

You rated this post out of 5. Change rating

2003-07-17

Technical Article

RE: DTS Scheduled Job Failed

  • Reply

I have a bunch of DTS packages running nightly from SQL Agent that work fine but I have had problems in the past. Some problems I have had have been: 1. The DTS run command uses the DTS package GUID to find out which DTS package to run. If you make a change to a […]

You rated this post out of 5. Change rating

2003-07-17

Technical Article

RE: Proper Shutdown of SQL Servers in a Cluster

  • Reply

quote: Can you share an example of that script and does it run from sql server agent? I have a shutdown script where I shutdown one server about 30 seconds after the second just for the case you've indicated. This ensures the nodes go down gracefully and you don't have the cluster service trying to […]

You rated this post out of 5. Change rating

2003-07-16

Technical Article

RE: Proper Shutdown of SQL Servers in a Cluster

  • Reply

I have a shutdown script where I shutdown one server about 30 seconds after the second just for the case you've indicated. This ensures the nodes go down gracefully and you don't have the cluster service trying to bounce between the two. K. Brian Kelley http://www.truthsolutions.com/ Author: Start to Finish Guide to SQL Server Performance […]

You rated this post out of 5. Change rating

2003-07-14

1 reads

Technical Article

RE: Indexing Problems

  • Reply

There is an index on site_fk in tblline. I tried your query but it displayed the same execution plan as with my query. It uses the site_fk index to find the anumbers, and then does a clustered index scan on the call table. It then creates a hash table and matches them up. I'm pretty […]

You rated this post out of 5. Change rating

2003-07-10

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