Viewing 15 posts - 6,121 through 6,135 (of 7,499 total)
select mycol, case when myrowcountcol > 1 then 'High'
when myrowcountcol < 1 then 'Low'
else 'ONE'
end as HL
from (select mycol, count(*) as myrowcountcol
from .....
group by mycol
) A
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 5, 2006 at 1:13 am
We use Gert Drapers (SQLDev.Net) XPSMTP and send the queryresult as an attatchment.
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 4, 2006 at 12:38 am
you'll need to use sp_changedbowner to change a db's owner.
sa = systemadministrator = omnipotent meaning has all authority to do anything with all db of a serverinstance. If you make...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 4, 2006 at 12:35 am
IMO the problem is that your primary key is CLUSTERING !
This also has an impact to _all_ NCI !
Drop and recreate your Primary key but make it non-clustering.
Create a clustering...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 1, 2006 at 5:33 am
DECLARE @Date_Time_Requested DATETIME
DECLARE @Count_TimeOut_Records INT
DECLARE @MailMessage VARCHAR(8000)
DECLARE @NewLine CHAR(2)
DECLARE @Oldest_Date DATETIME
DECLARE @EmailAddress VARCHAR(50)
DECLARE @MailSubject VARCHAR(150)
---Initialisation
SELECT @Oldest_Date = getdate()
SELECT @Count_TimeOut_Records = 1
Set @EmailAddress = 'yourmailaddress@yourprovider.whatever'
SELECT @NewLine = char(13) + char(10)
SELECT @MailSubject = 'TEST ! (...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 1, 2006 at 5:21 am
@query = 'select * from AIS.dbo.vwOrdersShippedNotInvoiced'
this may "sound" redicule, but that's how it always works overhere ![]()
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
September 1, 2006 at 5:14 am
I suppose each node hosts 2 active instances of sqlserver.
On each node the active instanceses will compete for the ram (6Gb < 2*4Gb) and cpu (4speed cpu < 2*4slow ? ) ....
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 31, 2006 at 7:51 am
btw "...The databases migrated from four standalone servers with quad processors and 4 to 6GB of memory...."
could it be that .... 4 * 4slow + 4*(4 to...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 31, 2006 at 7:03 am
may I add ....
DBCC dbreindex all your tables and indexed views and indexes.
dbcc updateusage(yourdb) with count_rows
sp_updatestats all your db
and SP4 has changes regarding implicit datatypeconversion ! This may have a...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 31, 2006 at 6:56 am
http://blogs.msdn.com/lcris/archive/2005/06/10/428178.aspx
explains a bunch of it !! ![]()
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 31, 2006 at 6:48 am
select
replace( cast ( serverproperty('ProductVersion') Johan Dont drive faster than your guardian angel can fly ... - How to post Performance Problems - How to prevent a sore throat after hours of presenting ppt press F1 for solution, press shift+F1 for urgent solution 😀 Who am I ? Sometimes this is me but most of the time this is me
Learn to play, play to learn !
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post data and code to get the best help
August 31, 2006 at 4:34 am
This kind of poor queries will have you suffer long time ![]()
here are some more solutions.
I guess the CTE is a good example,...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 30, 2006 at 12:08 am
SQL2005 :
declare
@DefaultBackupDirectory nvarchar(512)
exec
master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 29, 2006 at 8:00 am
I guess you better launch a new thread with title "linked server losing connection when domain controller bounced" ![]()
Maybe that will encourage some people...
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Who am I ? Sometimes this is me but most of the time this is me
August 29, 2006 at 7:49 am
Check the access path :
Maybe it's trying to generate the same path like the one for this query :
SELECT
TOP 50 * Johan Dont drive faster than your guardian angel can fly ... - How to post Performance Problems - How to prevent a sore throat after hours of presenting ppt press F1 for solution, press shift+F1 for urgent solution 😀 Who am I ? Sometimes this is me but most of the time this is me
Learn to play, play to learn !
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post data and code to get the best help
August 29, 2006 at 6:33 am
Viewing 15 posts - 6,121 through 6,135 (of 7,499 total)