Viewing 15 posts - 11,191 through 11,205 (of 22,224 total)
If it's LiteSpeed, you have to use LiteSpeed to restore it. You can use the utility to uncompress it and then restore it.
Also, if it wasn't LiteSpeed, you can try...
"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
April 2, 2012 at 5:27 pm
By the way, all these examples are for local variables, not parameters. There is a distinct difference. Unless the statement is recompiled, the values within variables will not be "sniffed"...
"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
April 2, 2012 at 3:28 pm
SQLKnowItAll (4/2/2012)
Lynn Pettis (4/2/2012)
Grant Fritchey (4/2/2012)
Lynn Pettis (4/2/2012)
MyDoggieJessie (4/2/2012)
Lian (4/2/2012)
Hi,we are running SQL Server 2005 Enterprise Edition 64 bit
I'd like to hear your suggestion anyway Lynn!
In SQL Server 2008 and...
"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
April 2, 2012 at 1:54 pm
Lynn Pettis (4/2/2012)
MyDoggieJessie (4/2/2012)
Lian (4/2/2012)
Hi,we are running SQL Server 2005 Enterprise Edition 64 bit
I'd like to hear your suggestion anyway Lynn!
In SQL Server 2008 and newer when running Enterprise Edition,...
"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
April 2, 2012 at 12:03 pm
To check when the last time statistics were updated, use the STATS_DATE function.
The rules for when auto update fires are a bit more complicated. They're listed here.
If you add...
"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
April 2, 2012 at 9:09 am
There's no perfect template for how often you should run backups and how often you should test restores. You need to establish a service level agreement with your business about...
"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
April 2, 2012 at 8:02 am
By default SQL Server comes with a whole bunch of Policies built in. To try them out, right click on the Policies folder and select Import from the context menu....
"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
April 2, 2012 at 7:24 am
Mad-Dog (4/2/2012)
Grant Fritchey (4/2/2012)
"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
April 2, 2012 at 6:22 am
Microsoft supplies a free tool, the Upgrade Advisor, which will validate that there are no code or structure issues keeping you from upgrading. I'd absolutely run that before starting any...
"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
April 2, 2012 at 5:37 am
We can't see your query and we can't see your execution plan. With no knowledge, it's almost impossible to tell you what to do. As Gail said, look for problems...
"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
April 2, 2012 at 5:11 am
It sounds like you might be dealing with a case of bad parameter sniffing. Instead of freeing the entire proc cache and the buffer cache (which requires reloading everything), try...
"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
April 2, 2012 at 5:07 am
Absolutely run the Upgrade Advisor prior to the upgrade.
I suspect the deprecated code you're thinking of is the old ANSI 89 OUTER JOIN syntax
SELECT *
FROM Table1,Table2
WHERE Table1.ID *= TAble2.ID;
You...
"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
April 2, 2012 at 5:02 am
I'm totally with Gail on this, remove the hints as a first step, then look at the execution plan to understand where things are 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
April 2, 2012 at 5:00 am
If UserID is coming up NULL, then your problem is here:
set @UserId =(select UserId from aspnet_Users where UserName= @Username)
Not with the other statements.
"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
April 2, 2012 at 4:52 am
Take the script you have, turn it into an ad hoc TSQL statement and run it through sp_msforeachdb
"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
April 1, 2012 at 7:44 am
Viewing 15 posts - 11,191 through 11,205 (of 22,224 total)