Viewing 15 posts - 31 through 45 (of 367 total)
Yusuf Ali Bhiwandiwala (3/27/2013)
Vedran Kesegic (3/26/2013)
Heap should have no indexes. Try with TABLOCKX hint.
Hi Vedran,
I couldn't quite connect your two sentences:
"Heaps should have no indexes" (heaps can have non...
March 27, 2013 at 1:56 pm
insert into error(a, b, c, d, e, f, reason)
select u.a, u.b, u.c, u.d, u.e, u.f, reason='not in member'
FROM util u
join
(
Select a, b, c, d from util
Except
Select a, b, c, d...
March 27, 2013 at 7:25 am
Nulls will be the problem because you use = operator. Use except operator, it gives correct result and is much simpler:
Select a, b, c, d from util
Except
Select a, b, c,...
March 27, 2013 at 7:01 am
Defragmentation and high fill factor (default 100), so there will be less pages to read. Optimize disk read speed (put their filegroups on RAID5) and network speed (check that networking...
March 26, 2013 at 8:54 am
Heap should have no indexes. Try with TABLOCKX hint.
March 26, 2013 at 8:40 am
Google "Brent Ozar", read his articles and watch videos. There are very few counters that have some absolute limits, like cpu queue, disk secs per read, secs per write. All...
March 26, 2013 at 8:29 am
You do not need a view for delete-insert command. Making the code even simpler:
INSERT INTO destination
SELECT *
FROM
(
DELETE TOP (100)
FROM source
OUTPUT DELETED.*
) AS t
Complete example:
use tempdb
GO
-- prepare test data to transfer
select...
March 25, 2013 at 6:00 am
Here it is, with a bit more explanations:
http://blog.sqlxdetails.com/procedure-with-execute-as-login/[/url]
March 23, 2013 at 8:12 pm
datwungai (3/22/2013)
Thanks Vedran!The certificate works like a charm!
dwg
I'm glad to help. I'll put the script and explanations on my blog.
March 23, 2013 at 3:35 am
Name it as you like. Yes, it can be classified as a type of slowly changing dimension, but the name is not really important here. Is that functionality you need...
March 22, 2013 at 7:02 am
Has anyone else had a similar problem and solved it with something other than slowly changing dimension?
Yes, solved it with start-end dates and cte packed into a function (instead of...
March 22, 2013 at 1:57 am
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ac074ccb-1a52-4bda-a032-c874d3ba8ce5/[/url]
cmd.Parameters.Add("@Value", SqlDbType.Xml).Value = doc.ToString();
March 21, 2013 at 1:37 am
Try using "new SqlXml(...)" instead of converting doc to string.
March 21, 2013 at 1:25 am
Never delete. On move, set enddate instead, and copy to new location with startdate=enddate+1. Add date filter to queries.
March 20, 2013 at 6:03 pm
Intermediate results sometimes can be calculated separately and stored to temp tables. Post your cte if you want more specific answer. There is no debugging tool that i am aware...
March 20, 2013 at 5:58 pm
Viewing 15 posts - 31 through 45 (of 367 total)