Viewing 15 posts - 46,651 through 46,665 (of 49,552 total)
Since you're using SQL 2005, you cna query the sys.databases view to see why the log is not been reused. There's a column with the log_reuse_wait_desc (I think)
How often are...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 8, 2008 at 4:57 am
Then SQL will take just as much memory as it needs, up to the max as defined by the max server memory.
If there was a non-zero minimum, it would...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 11:10 pm
The object_name and object_ID functions work only in the current database.
For what you're trying to do, try joining the sys.columns and sys.tables views together.
SELECT * from OtherDB.sys.tables t inner...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 11:06 pm
A table is defined as an unordered set. While the physical implementation of the table does give the data an order stored on disk, there is no guarantee that the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 11:04 pm
What's the min memory setting?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:50 pm
Which performance counter?
What's the problem? That you believe it should be using 14 GB?
Is the /pae switch in the boot.ini file?
Is AWE enabled in SQL?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:48 pm
Hmmm...
Statistics are up to date.
Proc has been dropped and recreated (which will remove plans from the cache)
Very strange...
Any blocking/waiting visible when the proc runs?
Indexes fragmented?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:30 pm
It's not that hard, just requires a different mind set.
The problem I've seen is that developers (C#/Java/PHP) say that SQL's very easy to write and hence they don't need to...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:22 pm
Also, what edition of SQL are you running (standard, enterprise, ...), 32 bit or 64 bit? What service pack?
What memory switches are present in boot.ini
What's you min memory setting? What's...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:18 pm
There's no such thing as 'natural order'. If an order by is not specified, the order that the rows return in is not defined and may change.
How do the execution...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:14 pm
Are the statistics accurate? You can check when they were last updated with the STATS_DATE function.
Has the base table changed much recently?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 3:11 pm
It does work for auto grow and shrink, also cleans up dropped objects or indexes.
Done anything like that recently?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 2:24 pm
What tends to cause massive fragmentation on the disk level is repeated shrinks and grows of the data file, especially if there are multiple data files on the same disk...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 2:08 pm
No need for begin tran. The trigger runs within the transaction started by the insert/update
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 2:00 pm
In this case yes. That's assigning the results of a subquery to a variable. and only works with a single variable and column.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2008 at 1:36 pm
Viewing 15 posts - 46,651 through 46,665 (of 49,552 total)