Viewing 15 posts - 6,586 through 6,600 (of 6,676 total)
bhanf (5/21/2008)
[StateLouisianaOld] is on TBServer1
[StateLouisianaNew] is on...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 5:10 pm
Yes, it is available and does not need to be turned on. For whatever reason (I have no idea why), it has been changed to:
Ctrl-K-C to comment
Ctrk-K-U to uncomment
Jeff
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 4:43 pm
Because then you can create your own and publish it to your own report server. Or, build a daily process to track growth by table.
And better yet, if you...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 2:55 pm
You can avoid the cursor and the call to sp_spaceused using the following (stolen 😉 from the standard report 'Disk Usage by Table').
;WITH partitionStats
AS (SELECT
ps.object_id,
SUM(CASE
WHEN (ps.index_id < 2) THEN...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 2:08 pm
Ah - I see, this is one of those cases where I would have to agree that the use of a cursor is warranted. The only way to avoid...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 1:38 pm
Since all you are doing is running a cursor over the temp table - I cannot see how having any indexes on the temp table would help.
I would be more...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 1:07 pm
Are you using any temp tables in the stored procedure? That can cause some problems - as well as multiple resultsets.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 1:02 pm
How large is this table? How many rows/pages?
Small tables will always show a level of fragmentation, and any table with less than 1000 pages is not going to show...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 10:24 am
You need to be at version 9.0.3054 at a minimum (there were problems with SP2 and maintenance plans).
Additionally, you need to make sure your client tools have been upgraded to...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 9:30 am
Mike Levan (5/20/2008)
TableB ( empid, Emprole,EmpSal)
I wan to look up TableA with TAble B, if TableB...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 3:48 pm
View | Registered Servers
You are looking at the Object Explorer, which only shows servers that you are currently connected to.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 2:22 pm
Statistics on indexes are automatically created with full scan and will remain that way unless you update statistics with a sampling after the indexes are created.
Well - that is how...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 11:49 am
One question you need to consider also is how large is your maintenance window. In other words, how long do you have each night to perform maintenance?
If you have...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 10:38 am
From BOL on UPDATE STATISTICS:
UPDATE STATISTICS WITH RESAMPLE updates all the statistics on a table at the current sampling rate. This means that statistics tied to indexes, which are created...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 10:13 am
This sounds like a perfect case for using EXCEPT or INTERSECT. Example:
-- Create the tables
CREATE TABLE #temp (a int, b int, c int);
CREATE TABLE #temp1 (a int, b int,...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 20, 2008 at 9:32 am
Viewing 15 posts - 6,586 through 6,600 (of 6,676 total)