Viewing 15 posts - 21,961 through 21,975 (of 22,189 total)
SELECT * FROM tblCandidates
WHERE 1 = CASE WHEN @CandidateId = 0 THEN 1
WHEN ID_Kandidat = @CandidateID THEN 1
ELSE 0
March 21, 2007 at 10:31 am
Whew. I thought I was going nuts for a minute when that turned out not to be as easy as I originally thought. We all came to the same conclusion...
March 21, 2007 at 6:16 am
But, of course, never on a production system where we need to have up to the minute data recovery, right.
March 20, 2007 at 1:35 pm
100,000 records is just going to take a long time to return especially when you add x number of columns, latency, network traffic, etc. It's also probably going to ignore...
March 20, 2007 at 9:11 am
OK. Maybe I'm wrong.
I tried several things and the original is still the performing best.
I thought this would work:
SELECT *
FROM x
WHERE 1 = CASE WHEN '' = @id THEN...
March 20, 2007 at 8:36 am
Oh yeah, I'd go with XML. It's a bit of a pain to code, but you can make it scream (except for the memory overhead) for performance. It directly supports...
March 20, 2007 at 7:02 am
First, the low hanging fruit. Is the column Enquiry_Id an integer (most ID columns are, why I'm asking)? If so, it looks like you're passing a string & letting it...
March 20, 2007 at 7:00 am
There's no doubt that XML does add overhead, but from the sounds of things, you're probably well within the range that justifies it's use. What kind of functionality is it...
March 20, 2007 at 6:41 am
Do you mean that you've passed in more than 2100 parameters? If that's true, you might want to change your calls and send in XML that you can shred on...
March 20, 2007 at 6:22 am
#1 DBA Response: It depends.
Honestly, some production systems don't need up to the second transaction recovery so we set the recovery model to simple. Some production systems, we care about...
March 19, 2007 at 11:57 am
You really need to evaluate the system. Bare minimum you need to be sure the statistics are getting updated regularly. You should also look into tracking down a script that...
March 7, 2007 at 7:27 am
You really need to evaluate the system. Bare minimum you need to be sure the statistics are getting updated regularly. You should also look into tracking down a script that...
March 7, 2007 at 7:22 am
We spent several days chasing down why a query was running twice as fast on a test box as it ran in production. Then we noticed that the test box...
March 6, 2007 at 8:13 am
Always stored procs.
If the order or where clause is radically variable, you may have to generate a dynamic statement within the stored procedure (totally frowned on, but possibly necessary).
Think about...
March 6, 2007 at 8:07 am
Depending on your experience, this could be a tough transition. You need to learn to work with and like developers. I'd work on db design, advanced tsql programming, xml, and...
March 6, 2007 at 7:59 am
Viewing 15 posts - 21,961 through 21,975 (of 22,189 total)