Viewing 15 posts - 19,171 through 19,185 (of 22,226 total)
It's stored in the registry, so you could query that... not a great option.
"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
December 5, 2008 at 8:33 am
I'm not so much worried about the FK's. How do I get the data out of the structure you have defined?
"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
December 5, 2008 at 7:55 am
I ran a test. I saw two StmtCompleted events for a proc that called sp_executesql. What I saw was a preperation statement and an execution statement. I suspect you'll see...
"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
December 5, 2008 at 7:52 am
StmtCompleted is pretty expensive to the system. You'd be better off collecting RPC:Completed and SQL:BatchCompleted. Those two are more or less equal. StmtCompleted are the individual statements within a batch...
"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
December 5, 2008 at 7:35 am
pat (12/5/2008)
Tables:
Person : emp_id, org_id,mgr_id,loc_id
manger : Mgr_id, Name
Location : Loc_id, disc
Organization : org_id, disc
so now the question is :
org_id for all empid belong...
"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
December 5, 2008 at 7:32 am
I agree with everything Michael posted.
The one point I'm not sure about... From your description, does this report even use a WHERE clause when accessing the information for display? Does...
"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
December 5, 2008 at 7:03 am
Speaking generally, it really sounds like you're on the right track using partitioning. Andy Novick (MVP, consultant, nice guy) has presented at PASS and our local users group on using...
"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
December 5, 2008 at 6:59 am
Please do as Gail requested in order to get detailed help, but I will point out these two phrases in your post:
debjani.bedajana (12/4/2008)
"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
December 5, 2008 at 6:53 am
pat (12/4/2008)
I am trying to update location for employee organization:
any employee that has organization field updates to the data that’s in their managers organization field
i have query but...
"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
December 5, 2008 at 6:50 am
You should be getting a return code from the procedure when it's called initially. Normally, unless you mess with it, it's 0 for success and any other value for failure....
"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
December 5, 2008 at 6:10 am
Prior to 2005, people (including me) tried using OPENXML to perform this function. It worked reasonably well, but instantiating the XML document back then was a pretty major performance hit,...
"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
December 5, 2008 at 5:51 am
adrian (12/4/2008)
The following query generates the selectselect.jpg execution planselect * from (Select dbo.cap_parm('SAMPLES\PARAMETERS\Month') as a) xxx
Whereas this
Select dbo.cap_parm('SAMPLES\PARAMETERS\Month')
generates the select.jpg execution plan
They both appear identical
Yeah, from this script alone, they...
"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
December 5, 2008 at 5:45 am
It's 4,5,and 6 that we're going for, paying for them with 1,2 and 3 and the other things already mentioned on this thread because, after all, TANSTAAFL.
"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
December 5, 2008 at 5:25 am
Just a wrinkle on top of what you're doing, get individual scripts for each object, not one script for the entire database. It's more difficult to work with individual objects...
"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
December 5, 2008 at 5:23 am
Tempdb is the biggest cauion in the lot. You have to know that if the tempdb fills while dealing with READ COMMITTED SNAPSHOT, then the read's against the data aren't...
"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
December 4, 2008 at 12:33 pm
Viewing 15 posts - 19,171 through 19,185 (of 22,226 total)