Viewing 15 posts - 1 through 15 (of 95 total)
Sorry, I had one of my typical moments when typing that up.
I meant query performance statistics
November 8, 2011 at 2:55 pm
Nice info Craig 🙂
Instead of testing and exiting, is there a way to use a cursor to spin and "sleep" whiling waiting for the lock to release?
btw, I've done...
April 21, 2011 at 3:27 pm
Actually, I should find out if I can do it the "correct' way first.
Is there a way of do this kind of aggregate using expressions and groupings in SSRS 2005:
count(distinct...
January 13, 2011 at 7:51 am
Like GilaMonster said, there is nothing inherently wrong with correlated queries other than they're often incorrectly used.
I find they work extremely well to check for existence of relations on tables...
January 12, 2011 at 1:22 pm
We're importing data for a customer into our database and the customer's data is being provided by a 3rd party who houses their data and neither the customer nor the...
August 6, 2010 at 1:54 pm
Intel's new i7 Xeons support Hyperthreading and it actually works this time
October 30, 2009 at 3:15 pm
goodwill_guy (10/30/2009)
I have 2 jobs
1. populatehistory - Writing the history of the company into one table
2. calculatehistory - Another job...
October 30, 2009 at 3:13 pm
NUMA:
The OS defaults to allocating memory from the current NUMA node that the thread is executing. If the thread changes nodes or runs out of available memory on the current...
September 3, 2009 at 3:41 pm
I *think* it's called for each row
July 9, 2009 at 8:43 am
on convert(int,nvarfield) = convert(int,varfield)
one way it could be done
July 9, 2009 at 8:28 am
Here's a little theory crafting and would be nice if it wouldn't be too hard to try out
Select fsp.*, fsl.* from Fact_SalesPerformance fsp
inner join Dim_Listing dl on dl.ListingID = fsp.ListingID
inner...
July 8, 2009 at 3:44 pm
be careful with your "MAX" statement since getting that conversion error means that table is storing dates as STRINGS
you shown this in one of your replies
partnum revisionnum effectivedate
---------- ----------- -------------
1234...
July 8, 2009 at 3:08 pm
Lowell (7/8/2009)
whenever you do that, You have to test for nulls, as that will screw up the EXISTS
WHERE NOT EXISTS
(SELECT OldLicenseNumber...
July 8, 2009 at 2:52 pm
INSERT INTO TestID
(OldLicenseNumber)
SELECT
DISTINCT OldLicenseNumber
FROM TableFrom2002
WHERE NOT EXISTS
(SELECT OldLicenseNumber FROM TestID)
Your problem is with the "not exists", you're using it incorrectly.
EXISTS vs IN
INSERT INTO TestID
(OldLicenseNumber)
SELECT
DISTINCT OldLicenseNumber
FROM TableFrom2002
WHERE NOT...
July 8, 2009 at 2:48 pm
If you ever have to "store passwords" make sure you salt and hash them.
July 8, 2009 at 2:34 pm
Viewing 15 posts - 1 through 15 (of 95 total)