Viewing 15 posts - 49,156 through 49,170 (of 49,571 total)
In SQL 2005 there's a DM view that can show you this. sys.dm_db_index_usage_stats
April 6, 2006 at 2:27 am
That's her automatic signature. Just as mine is "Have a nice day..." It's not aimed at any one but is on every post of hers automatically. It's a pun on...
April 5, 2006 at 7:31 am
Do you mean table-valued function perhaps?
If so, there's a very nice section in books online (the SQL help files) on them. Title is "User-Defined Functions That Return a table Data...
April 5, 2006 at 7:12 am
Locks are escalated according to memory availability. It's definatly not a hard threshold of 10.
Rules for preventing deadlocks.
1) Keep your transactions as small as possible
2) Access tables as seldom as...
April 4, 2006 at 11:57 pm
One thing to note with the times is that they vary with other server activity. I ran the following on my server 5 times and got the following results: (exactly...
April 4, 2006 at 9:08 am
The reason I am doing it as a string built up is that alot of our procs have optional parameters and as far as I know you have to define...
April 4, 2006 at 6:44 am
Don't use hints unless you've tried everything else, and even then think twice. The optimiser is often better at picking a query plan than you are.
If 10 users each lock...
April 4, 2006 at 6:15 am
Several years ago, I 'proved' to my boss that the asp frontend that I'd written for a stock options system wasn't vulnerable to sql injection.... and in the process I...
April 4, 2006 at 6:05 am
Not possible to tell. SQL uses its memory for all databases as required. memory is divided into areas, but not per database. Things like buffer cache, lock cache, procedure cache, etc.
I...
April 4, 2006 at 5:56 am
No, but this should work a lot better
CAST(COALESCE (table.value, '') AS CHAR(6))
In your one, if value had been null you'd have got an empty string. SPACE will also work, as will...
April 4, 2006 at 4:59 am
If you use the parameters collection of the ado command object then you don't have to worry about wrapping strings in quotes. been a while since I did asp, but...
cmd.Command...
April 4, 2006 at 4:47 am
If you have excessive locking, then you likely either have poorly written queries, poor indexing (or badly fragmented indexes), or both.
I've fixed numerous procedures that have a tendency to deadlock either...
April 4, 2006 at 4:26 am
I just need to mention that TOP 100 PERCENT is completely unnecessary and is a bad habit to get into. Only use top if you want a portion of the records.
Other...
April 4, 2006 at 4:14 am
What do you mean by 'performance'? Took longer? More IO? More CPU? Which of those statistics are you using?
The statistics that you posted are the client statistics, not the server....
April 4, 2006 at 1:16 am
What database did you use for that? I'd like to see what the change in the plan was for the 3rd query.
I tried the following in Northwind. All 3 came...
April 3, 2006 at 3:43 am
Viewing 15 posts - 49,156 through 49,170 (of 49,571 total)