Viewing 15 posts - 48,061 through 48,075 (of 59,064 total)
stephane3d (9/27/2008)
I have a log table that saves web visits. And I have this query which is pretty slow :
select top 500 count(1) as nbCount, currentPage as item,
dateadd(dd, DATEDIFF(dd,...
September 27, 2008 at 4:45 pm
As a side bar, I strongly question the value of assigning the NCHAR datatype to a column, like the amount column, that will obviously hold a numeric value.;) I...
September 27, 2008 at 1:06 pm
There is one lightning quick method to do this in a set based fashion that depends on a clustered index. The method is discussed at some great length in...
September 27, 2008 at 12:59 pm
For starters, you could try adding the "WITH RECOMPILE" option to the sprocs just to test the water. A better way would be to actually assume that parameter sniffing...
September 27, 2008 at 11:12 am
Thanks... I hate it when that happens... just splits resources and makes it difficult for others to search for a correct answer.
Since the other post has more activity, I'll continue...
September 27, 2008 at 7:15 am
peter (9/25/2008)
September 27, 2008 at 7:07 am
rbarryyoung (9/26/2008)
What the IF NOT EXISTS check was intended to do was merely to prevent the error message in the first place. And they did complete that intention.
You could...
September 26, 2008 at 9:46 pm
Heh... yep... I understand all of that. But the obvious intention of generating the dynamic SQL is to make it possible to protect the user from accidental overwrites when...
September 26, 2008 at 7:46 pm
If you want one that's ready made and pretty handy, lookup DBCC SHOWCONTIG and take a look at "Example E"... It even has a place to set a "Max Frag"...
September 26, 2008 at 7:43 pm
Because they clear cache... not just for the proc running, but for everybody. Depending on what's being done, cache is very important for performance by repetative and other code.
September 26, 2008 at 7:27 pm
... and, yes... that "feeling" goes towards delete triggers, as well.
September 26, 2008 at 7:14 pm
ZIP is obviously a reference table. Someday, you may want to delete a ZIP with no impact on other tables. Cascading deletes is a pretty bad idea to...
September 26, 2008 at 7:12 pm
The basic table naming convention I try to follow is... what does one row contain? Does it contain a Customer or Customers (answer should be obvious, there)? Same...
September 26, 2008 at 7:03 pm
Hmmm... alright, Neela... thanks. I've got this. I'm on my way to work... I'll bang it out tonight.
September 26, 2008 at 5:51 am
Barry and Cath, that did the trick. Setting "Include IF NOT EXISTS clause" to false, got rid of all the dynamic SQL.
Matt, yeah, I'd already tried ALTER and that,...
September 26, 2008 at 5:18 am
Viewing 15 posts - 48,061 through 48,075 (of 59,064 total)