Viewing 15 posts - 55,666 through 55,680 (of 59,072 total)
Good workaround, but a bit slow and resource intensive if you have millions of rows...
Something like the following works very fast... yeah, it does use dynamic SQL but that's only...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:44 am
Why do you need a white paper on the fact that if two users use a function, they get their own answers? It's that way with any function in any...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:38 am
Also, almost forgot... you can shrink TempDB (by file) as with any other DB without bouncing the server (possibly as Sugesh suggested). It could cause a fairly long wait time, though......
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:33 am
If the batch size of BCP/BULK INSERT is relatively small (less than a million rows, say), then those are likely not the problem. Rumor has it that the extensive use of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:30 am
No... not ready to make that recommendation. We first need to identify what change was made to cause the code to suddenly go south several days ago. Quick fix would...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:22 am
Run the following...
DBCC USEROPTIONS
... which will produce something like this...
Set Option Value
textsize 64512
language us_english
dateformat mdy
datefirst 7
quoted_identifier SET
arithabort SET
ansi_null_dflt_on SET
ansi_defaults SET
ansi_warnings SET
ansi_padding SET
ansi_nulls SET
concat_null_yields_null SET
(12 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:11 am
Ok... not the explanation I was looking for but I guess it'll do.
If you want to round to a single decimal place, then convert it to to something like DECIMAL(19,1)...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 8:02 am
It's ok... heck, I guess I don't blame you about the bump on a busy forum. When you need an answer, you need an answer and a relatively harmless bump...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 7:53 am
Heh... ok... not sure that's better or worse but at least its not a desparate human
Thanks, Rainer.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 7:48 am
I'd recommend that changing the timeout is a patch, not a fix. All you'd end up doing is allowing code that desparatly needs to be fixed to take its sweet...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2007 at 7:46 am
Did the problem happen to start on the 13th of July? Sounds like someone may have changed the default date format from dmy to mdy and your code isn't handling...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2007 at 11:54 pm
Everyone is forgetting about the "other" problem... the excessive row sizes that arise when doing the table ALTERs for the nocheck of constraints. It means that one or more of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2007 at 11:52 pm
You may want to try using DBCC FREEPROCCACHE. If that doesn't do it and it's a GUI proc, you may have to clear cache for the application. Since I don't...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2007 at 11:40 pm
Ram,
Dunno about the others, but I need to know why you want to simply throw away so many decimal places especially since the target datatype (Money) has 4 decimal places...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2007 at 11:31 pm
I agree... bad message to promote and, depending on what the server is doing, if you down it, you could cost someone their life (seriously... 911 control server, traffic light...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2007 at 11:18 pm
Viewing 15 posts - 55,666 through 55,680 (of 59,072 total)