LEAD

Technical Article

RE: Index Usage w/ Dynamic Where Clause

  • Reply

SQL Server needs to pick one and only one access path for your SELECT statement. Since there are 5 columns being compared it will assume that every one is being used all the time which will never be the actual case due to the CASE statements embedded into the WHERE clause.As for a "better" way, what […]

You rated this post out of 5. Change rating

2004-09-20

Technical Article

RE: Combining records

  • Reply

Well, I don't see a way to do this in one easy step.  So, I would load the AS400 data into a staging table.From the staging table, you may need to then populate another table that crosstabs the data from the original staging table.  Then, you can query from that to populate the final destination […]

You rated this post out of 5. Change rating

2004-08-12

Technical Article

RE: How to expand @variables in SQL Statement

  • Reply

Agreed, simply is good and remember some basics. I think one of the options used a function on the column before testing ! Optimisers don't like this and are unlikely to utilise available indexes.Sometimes simple approaches look more verbose in terms of lines of code, but believe me, several months down the line having to […]

You rated this post out of 5. Change rating

2004-07-10

Technical Article

RE: Restoring an SQLServer 2000 database - questions...

  • Reply

THANKS much !!! (Yes, it isn't that large a database when you think about, compared to the others we have on this system it is one of the largest).Obviously I need to do a couple of practice restores on dummy databases to get this down.My big concern was after 3 hours, and having no gauge […]

You rated this post out of 5. Change rating

2004-03-31

Technical Article

RE: Displaying Permissions

  • Reply

This one puts the output into SQL commands that you can cut and paste into a new query and execute. -- af_revPermissions-- Verify existence of af_revPermissions procedure.  If it does exist, -- drop it, so that it can be re-created. if exists (select * from sysobjects where id = object_id(N'[dbo].[af_revPermissions]') and  OBJECTPROPERTY(id, N'IsProcedure') = 1)  begin […]

You rated this post out of 5. Change rating

2004-03-18

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