Viewing 15 posts - 48,646 through 48,660 (of 49,552 total)
At the archery range
Lounging in bed reading a good book
Playing computer games (I'm replaying starcraft in anticipation of starcraft 2)
Dinner with friends.
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 25, 2007 at 4:29 am
To find out what a proc is waiting on, open another query analyser/management studio window and run
SELECT spid, waittime, lastwaittype from master..sysprocesses
You'll have to look through the processes to find...
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 25, 2007 at 4:25 am
I would highly recomend that you get the following removed from the mainenance plans.
Remove unused space from database files (shrink db when it grows beyond 50MB, free space after shrink:...
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 25, 2007 at 1:57 am
Ah. In that case, I would suggest remove all schemas other than dbo and make sure that all users have the dbo default schema. That should remove any possibility for...
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 25, 2007 at 1:39 am
Are you using SQL 2000 or SQL 2005? If you are using 2000, post in the 2000 forums. If you are using 2005, please post in the 2005 forums.
Most of...
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 25, 2007 at 1:28 am
Could you pos the proc please?
Things to check - how much space is free in the DB? If it has to grow to accomodate the data, you will get slow...
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 25, 2007 at 1:20 am
Dunno about the problem changing the default schema, try using T-SQL rather than the GUI. ALTER USER ...
It is recomended practive to always specify the schema name when refering 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 25, 2007 at 12:53 am
Indexes can be used for range scans.
If, say, you're always looking for the latest 10 records in the table, an index on the date field is very useful.
This is...
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 25, 2007 at 12:18 am
It might be an idea to normalise the table so that you can do equalities, rather than having to use like across a comma delimited list.
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 24, 2007 at 7:45 am
I did a comparison a while back, comparing the cast as varchar with the dateadd method for removing a time from a datetime, and the dateadd came in much cheaper...
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 24, 2007 at 7:38 am
It seems splitting up the current proc into numerous different queries defeats my original purpose of writing one generic proc in the first place and still no-one has answered 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 24, 2007 at 6:51 am
Agreed on the wrapper proc.
Recompile can cause serious bottlenecks, not just because of the CPU time to do the compile.
While an object is being compiled, an exclusive lock is...
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 24, 2007 at 5:59 am
I'd suggest split into two. One for when the beginning of the name is specified (because it can use an index if there is one on name) and one for...
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 24, 2007 at 3:31 am
I'd recomend removing the recompile and rather split the stored proc into two, one that retrieves all candidates, one that retrieves a single one by name.
The problem is that depending...
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 24, 2007 at 1:48 am
Two databases, or two tables?
Can you provide the table's structure, some sample data and an example of what you want please
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 24, 2007 at 1:30 am
Viewing 15 posts - 48,646 through 48,660 (of 49,552 total)