Viewing 15 posts - 3,901 through 3,915 (of 9,644 total)
I'd do as Flo has recommended although with the caveat that you may want to look at executions in addition to duration. You may get a bigger boost out...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 4:12 pm
See the bottom 2 articles referenced in my signature for an explanation of how to do it. Here is some code that should work:
IF OBJECT_ID(N'temp_tests', N'U') IS NOT NULL...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 4:02 pm
Here's code that does it dynamically so you don't have to change the code when you add attributes. The only thing I don't do is provide a set order...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 3:50 pm
Not to nitpick, but what if there are milliseconds on the date? You are much safer using >= and < when dealing with dates.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 3:00 pm
Yeah, definitely do not do the convert to varchar as that totally changes things, let SQL Server do a data compare. Also, be careful with BETWEEN. Check out...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 2:50 pm
I'd recommend something like this:
DECLARE @temp TABLE (fullname VARCHAR(50))
INSERT INTO @temp (
fullname
)
SELECT
'Doe, Jon'
UNION ALL
SELECT
'Doe Jane'
UNION ALL
SELECT
'Smith Tom...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 2:40 pm
Yeah, I know you were trying to be funny. I actually almost used unclebiguns here on SSC when I signed up, but decided I wanted to be more professional...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 2:34 pm
You can see the DISABLE TRIGGER command using SQL Trace (Profiler). It comes through as TextData in the SQL:Batch* and SQL:Stmt* events, it does not have a specific event....
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 2:32 pm
Alvin,
You can refer to me as unclebiguns, I don't mind :-D. I would have provided more in the prior post, but I was on my iPod at the time...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 2:15 pm
Alvin Ramard (11/9/2009)
Changing subject .....I was wondering if anyone is aware of anything worthwhile that resulted from the Chapter Leader's "get-together" at the PASS Summit.
nothing earth shattering and whatever was...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 1:23 pm
Bob Hovious 24601 (11/9/2009)
Oh yeah that's right... Thursday is speedos.
Been hanging around Celko?
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 1:18 pm
Sure you can index on a varbinary column. I would guess, I have not tested, that it might be fastest to run the encryption on a parameter and do...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 9:10 am
Duplicate post. Please answer here.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 9:03 am
What VPN client are you using?
You might want to check to see if the one with the problem has SPN's setup correctly.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 9:01 am
What does sp_lock return for the update SPID? Every question ALZDBA has asked is relevant.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
November 9, 2009 at 8:59 am
Viewing 15 posts - 3,901 through 3,915 (of 9,644 total)