Viewing 15 posts - 181 through 195 (of 210 total)
Just my 2 cents.
If you set pagefile too small or worse disable it, the system will be slow regardless of ram size. On my comp with 2 GB ram the...
March 10, 2008 at 7:35 am
If you need just visit count, add a count column to the parent table, if you want more data on each visit (timestamp) , need to analyze visits (ie distribution),...
March 10, 2008 at 7:12 am
Take a look at the query execution plan.
Though not always helpful, it will give you at an idea where to look for the problem.
Recently I had similar problem with...
March 10, 2008 at 6:51 am
Unfair?
Matter of planning. Hardware is cheap. In US it's even cheaper than in Europe.
Savings are significant: I can simultaneously debug a fat client, ISAPI dll, sql triggers and all interactions....
March 10, 2008 at 3:03 am
I don't think that that cursor is the bottleneck. I ran a similar sp but replaced exec with print and it executed in practically no time for a hundred of...
March 10, 2008 at 12:10 am
Not that much. I bought it few months ago. Core2 duo 6600, 2gb ram, WD sata2 300gb. Fast disk (throughput 35mb/s write and 49 read), fast ram and a quality...
March 9, 2008 at 9:36 am
The niftiest trick is this:
CREATE INDEX IXC_TestData_Cover1 ON dbo.TestData(SomeID,SomeCode)
My timing is:
================================================================================
"Ugly trick" code...
SQL Server Execution Times:
CPU time = 1125 ms, elapsed time = 1091 ms.
================================================================================
XML code...
SQL...
March 9, 2008 at 3:05 am
This looks like a replication task - copies missing data from one database to another.
So if there's a lot of data in any database, it takes time to do a...
March 9, 2008 at 1:39 am
Since the sp runs a dynamic query and field names are not known in advance, it's impossible to do a join, unless the sp always returns at least the link...
March 9, 2008 at 12:32 am
Ugly trick? why?
Custom aggregates are extremely useful feature. While lists can be done with "FOR XML PATH", some thing can't, like when you have to do a binary OR (not...
March 8, 2008 at 10:20 am
oops, of course. I reread the original post again. I should be more careful.
March 7, 2008 at 7:35 am
insert into T2 select * from T1 where ;
delete from T1 where ;
You can put it into T1 trigger too, so you don't have to manually call the...
March 7, 2008 at 6:31 am
It's called custom aggregate (I think). It executes the expression for each row in the resultset. You can do it with FOR XML PATH() too.
Take a look at this thread:
http://www.sqlservercentral.com/Forums/Topic462961-145-1.aspx
March 7, 2008 at 6:20 am
A well known concept in software industry is configurability, meaning your app reads an external config file (INI, XML,...) or registry. Or asks the user and saves his input as...
March 7, 2008 at 6:13 am
Every table intended for update must have a unique key. In update statement you put unique key in where clause. If you don't care about concurrency, it's enough (upWherekeyonly update...
March 7, 2008 at 5:38 am
Viewing 15 posts - 181 through 195 (of 210 total)