Query Optimization

Technical Article

Locating global temp tables via asp problem

  • Topic

Hi,I've created a temp table to hold values for a report within an sp. ASP code then checks for the existance of the temp table to decide if a report report is to be printed or not. strSQL = "SELECT id FROM tempdb..sysobjects WHERE name = '##tmptable' AND Type = 'U'"After the sp has run, I can run the above via SQL […]

You rated this post out of 5. Change rating

2004-02-23

Technical Article

RE: Doing Short Circuiting in WHERE clause

  • Reply

Actually, I did think of implementing 'jpipes' method before I posted. But when you give users 4 to 8 different ways to tailer their search, like Scott says, the permutations sure add up quickly. I think that some of my search senerios will likely bias one over another method.....albeit not necessarily from a performance aspect. […]

You rated this post out of 5. Change rating

2003-07-29

Technical Article

RE: NULL values in source table don't add up

  • Reply

Ryan, In my opinion there is no reason at all to not replace NULLs in your fact table by references to a 'N/A' record. I can see your management's point if you're talking about a table that is used in an OLTP environment, but in an OLAP environment NULL values in the dimension fields just […]

2003-07-08

Technical Article

RE: Database can't be reached by users

  • Reply

Everything worked fine until the database was moved to a new virtual server and a new array. ODBC connections worked before the move. And the ODBC connections don't change from one node to another anyways. The backup is being run as a job step that I wrote. The step is: backup mydatabase to dbdevice with […]

2003-06-26

1 reads

Technical Article

RE: SQL and XML format

  • Reply

Hi Crispin I used the following: Select client_id, cl_fname, cl_lname FROM clients AS Client for XML AUTO, ELEMENTS This gives me: <Client> <client_id>1</client_id> <cl_fname>koos</cl_fname> <cl_lname>Viljoen</cl_lname> </Client> This is ok, but i am actually looking for: <Client client_id="1"> <cl_fname>koos</cl_fname> <cl_lname>Viljoen</cl_lname> </Client> How would I have to change the query if at all it is possible Cheers […]

2003-06-17

Blogs

Democratizing Core Contributions: A Guide to WordPress.org Badges 

By

In the WordPress community, badges aren’t just for scouts.

Microsoft Purview GA menu’s

By

The new data governance features in Microsoft Purview are now being made generally available...

Connect to Power BI as a Guest User in another Tenant

By

Sometimes your Microsoft Entra ID account (formerly known as Azure Active Directory) is added...

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