Viewing 15 posts - 20,866 through 20,880 (of 22,219 total)
Yeah but when you run two queries each shows a relative cost to the execution as a whole. Usually the speedier, lower cost, process shows as a smaller percentage of...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 7:14 am
Can you show the execution plan for this query? Output it as XML and attach it to a post.
You may want to look at SSIS as a mechanism for moving...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 7:03 am
That error could be a lot of things:
http://support.microsoft.com/kb/180843
http://support.microsoft.com/kb/304070
There are more. You'll need to investigate more on your end and send more information around the error to narrow it down.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 7:00 am
The whole idea of using SQL Server as relational storage engine is to not store things in a comma seperated field. You're going to have problems with that. Instead it...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 6:58 am
But to be utterly honest here, simply reeling off a few buzz words about what's new in SQL 2005 won't get you very far in an interview around most of...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 6:53 am
You have to declare the data type when you create the procedure, so you should know what data type you're returning.
Or are you asking how to know what data types...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 6:50 am
That is a bit odd. Usually there's a pretty direct correlation between cost & time. Also, looking at the two queries, I would expect the second query to have a...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 6:21 am
While you fixed your problem, you still have another one lurking. You have an index on a column that has 30,000 identical values out of a 100,000 row table. That...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 6:17 am
For some reason I thought it was Client Technology Preview, but Community makes more sense.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 5:59 am
It was just one of the solutions he offered. It was only the second solution and it ran faster than his initial solution. He did spend a lot of time...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 13, 2008 at 5:48 am
I hate to say it, at this point, I'm confused. I'd have to see structure & some data to better understand what you're trying to do and what's going wrong....
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 12, 2008 at 2:48 pm
It sounds like a paging problem.
One, of many, solutions that Itzik Ben-Gan offers in TSQL Querying:
--sets up data this way:
SELECT ROW_NUMBER() OVER(ORDER BY qty,empid) AS rownum,
empid,mgrid,qty
INTO #SALESRN
FROM dbo.Table;
CREATE UNIQUE CLUSTERED...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 12, 2008 at 2:46 pm
The MAX statement isn't working now?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 12, 2008 at 2:37 pm
Thanks. I'll check it out.
This thing jumped the topic track about 5 or six pages ago.
Just to put it back near the topic for a moment...
When being interviewed, how many...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 12, 2008 at 10:24 am
No, I mean get rid of the sub-select entirely. Why would you need it? If the name is in the consultant table then you should be able to pull it...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 12, 2008 at 10:21 am
Viewing 15 posts - 20,866 through 20,880 (of 22,219 total)