Viewing 15 posts - 10,081 through 10,095 (of 14,953 total)
I'd recommend breaking the query down into smaller pieces and finding which one gives you the error. Just run one column at a time, comment out the rest, till...
April 7, 2009 at 1:34 pm
Multiple identical indexes have no advantages. No speed increase on selects, definite speed decrease on insert/update/delete, and it takes up more disk space too.
On the index hint thing, I...
April 7, 2009 at 1:31 pm
Jeff Moden (4/7/2009)
GSquared (4/7/2009)
Have you tested it...
April 7, 2009 at 1:25 pm
If they don't have separate versions of the databases, then I guess they'll have to continue to query the production databases in order to build/test anything.
That's a really bad idea,...
April 7, 2009 at 1:11 pm
You're welcome. Glad I could help.
April 7, 2009 at 1:04 pm
Jeff, the problem with the convert(int) method is that it, again, relies on the internal storage of datetime, just like the version for float.
Have you tested it in SQL 2008...
April 7, 2009 at 12:35 pm
At the top, did you change where I had "getdate()" to the date you actually want to run? Looks like 2 April for your posted query.
April 7, 2009 at 12:02 pm
Try this. I can't test it (don't have the tables), so tell me if it doesn't work.
SELECT
daily.Fund,
daily.salesamount AS [Daily Sales Amount],
...
April 7, 2009 at 12:00 pm
Another possibility that occurs to me, from a bad prior experience, is that the account SQL Server is running under might end up locked out because of failed login attempts....
April 7, 2009 at 11:51 am
I can't test this, so I'm not sure if it'll work, much less whether it will be faster, slower, etc., than the current version. Can you test it out,...
April 7, 2009 at 11:46 am
There are a couple of ways you could manage that.
One would certainly be an on-insert trigger. Another would be to handle it in the insert proc. More likely,...
April 7, 2009 at 11:33 am
Have you checked logs (error log, server log) to see if there's something that happens right before that?
Certain error severities can cause SQL Server to "lock up". Take a...
April 7, 2009 at 11:19 am
mike brockington (4/7/2009)
April 7, 2009 at 11:13 am
Instead of doing a Union between those two queries, do a join. Join them on the column that has the Fund1, Fund2, etc., in it.
Does that make sense?
April 7, 2009 at 11:09 am
Viewing 15 posts - 10,081 through 10,095 (of 14,953 total)