Viewing 15 posts - 481 through 495 (of 507 total)
Berto,
I'd like to know how the (3 actually including the EXCEPT) version perform on large tables where a significant number of rows are returned.
Todd Fifield
March 3, 2008 at 1:16 pm
In order to set the column to not allow nulls, you will have to do an update to set all of the columns that contain a null to some default...
February 29, 2008 at 11:17 am
Thanks for the post on NOT EXISTS. I'm going to try it out on large record sets to see what happens. I've benchmarked the LEFT JOIN WHERE right-table...
February 28, 2008 at 12:57 pm
You could probably get the same or better performance from:
SELECT R.HWID1, R.HWID2, R.Status
FROM REF_UPD_HWID R
LEFT JOIN HWID H ON
R.HWID1 = H.HWID1
WHERE
H.HWID1 IS NULL
I've found using this...
February 27, 2008 at 4:42 pm
I just had a weird data problem between Access and SQL Server this week. It involved an ntext data type in a SQL Server table that was linked to...
February 7, 2008 at 11:16 am
I would normally do something like this:
LEFT JOIN
(SELECT tb7.Estadoid FROM Tbl_Tmp_Trace
WHERE tb7.Estadoid = 3094610094
AND tb7.Tipo = N'Chamadas' AND tb7.ID = tb4.ID
...
January 28, 2008 at 11:25 am
This one's a little more ugly:
SELECT COUNT(*) - COUNT(SID) FROM #temp
The COUNT() function will only count non-null columns if a column is specified.
Todd Fifield
January 24, 2008 at 12:41 pm
I've bench marked the type of scalar function in Adam's article against correlated sub queries, since they're doing the same type of thing, and they seem to work at about...
January 24, 2008 at 12:31 pm
There's trouble right here in River City.
That's trouble that starts with 'T'
That rhymes with 'B'
That stands for Big Manager.
I'd certainly get everything in writing and I might even start sending...
January 24, 2008 at 11:45 am
Thanks Gail. I'll do this in the future.
Todd Fifield
January 18, 2008 at 12:37 pm
Since you're kind of at the mercy of what the users enter for parameters, I would do the whole thing in Dynamic SQL. You could get rid of all...
January 18, 2008 at 12:16 pm
I've used both the 'IN' in the WHERE clause and and the joins to derived tables. In the cases where I benchmarked them, I found using joins to derived...
January 18, 2008 at 11:23 am
I used books by WROX to learn SQL Server years ago. I found they were very easy to read and very helpful. The one I mostly used was...
January 18, 2008 at 10:41 am
I do this sort of thing all the time. I ended up writing a function passing it the table name and which columns to omit (those being identity, computed,...
January 16, 2008 at 12:11 pm
I had trouble years ago using this type of correlated sub query to do updates. I found that this type of approach, using derived tables, works much better and...
January 16, 2008 at 11:59 am
Viewing 15 posts - 481 through 495 (of 507 total)