Viewing 15 posts - 19,141 through 19,155 (of 19,564 total)
You can also try SQLSpec. We are in the process of evaluating that currently. It can build some nice "webby" reports.
November 13, 2009 at 11:05 am
Tara-1044200 (11/13/2009)
SELECT Name [Database], Physical_Name [Physical file], size*8 [Size_KB] FROM sys.master_files
where Physical_Name like '%mdf' order by name
From the above query i am getting the list of databases but 5...
November 13, 2009 at 10:57 am
Thanks Gail.
With that note, the query would also change (when using sys.objects).
Select OBJECT_NAME(p.object_id) as TableName,SUM(rows) as NumRows,index_id
From sys.partitions p
Inner Join sys.objects o
on p.object_id = o.object_id
Where index_id in (0,1)
And o.type =...
November 13, 2009 at 10:38 am
dragee
Why?
Just because it has stuck with me since watching the food network the other night.
November 13, 2009 at 10:32 am
Try using a replace.
replace('"Term: Fall 2009 Subject: EDCI; Course: 257 Sensory Motor Sec: LL; Will Use Calendar"',';','-')
or some character that will not cause you the grief.
November 13, 2009 at 10:27 am
Agree, the answer to that question is - "It depends"
If we are using RBAR, on a 386, with 256MB Ram - I'm sure we could bring the house down with...
November 13, 2009 at 10:25 am
Same as Lynn said, with a reference
http://www.mssqltips.com/tip.asp?tip=1044
This article discusses the method you are using. The base idea is to do a rowcount without the table scan.
Here are a couple...
November 13, 2009 at 10:00 am
Once you eliminate the date cast(floor(... stuff and the subqueries, as a data integrity note - you should verify that the dates being picked up in your between clauses is...
November 12, 2009 at 6:20 pm
Just ran into a query here @ SSC that has 36 table joins - asking for tips to improve.
November 12, 2009 at 5:54 pm
only4mithunc (11/12/2009)
hi thanks,With table variable it worked..!!!
so shall I conclude that with #table it wont work...?
Regards,
MC
You can make it work with a #table as well. It is trickier,...
November 12, 2009 at 5:33 pm
Lowell (11/12/2009)
Lynn Pettis (11/12/2009)
Geez, Lowell, you take all the fun out making the OP tell us what the problem is... 😉
mea culpa; it was low hanging fruit and i'm...
November 12, 2009 at 5:23 pm
Looks like about the same problem you ran into the other day in this thread.
Here is a blog about the same sort of issue.
November 12, 2009 at 5:20 pm
mahesh.vsp (11/12/2009)
Hi,I want to keep track of all the autogrowths of a particular database in sql server table , how can we do that?
This is also along the lines of...
November 12, 2009 at 5:11 pm
The best options will depend on your environment. Test the options in your environment.
November 12, 2009 at 5:08 pm
Viewing 15 posts - 19,141 through 19,155 (of 19,564 total)