Viewing 15 posts - 106 through 120 (of 310 total)
Even if they are fixed values, do not use literal dates in your WHERE clause - performance will suffer badly. Declare DateTime variables and use those, eg :
DECLARE @Date1...
May 12, 2006 at 7:47 am
Be careful with table variables though - with many rows they are held on disc anyway so no i/o gain and they cannot be handled by parallel execution plans on...
May 12, 2006 at 2:21 am
For performance, create a calculated column with just the date part and index that.
April 21, 2006 at 6:08 am
Brilliant !!!
Its 6.5
Not 'my' database so I didnt think to check.
Many thanks for your help.
April 21, 2006 at 6:02 am
Gives the same error.
I just tried it on a different server though and it worked fine!
Both are Windows Authentication and Ive ensured that Ive got every permission in sight on...
April 21, 2006 at 4:45 am
Just in case of a simple typo, I edited the posted code to :
SELECT FundNo FROM dbo.EstDealDetail
That runs fine.
April 21, 2006 at 3:01 am
Thanks for the response.
Yes. Copied directly from QA. Neither I nor a couple of colleagues could see anything wrong, hence the posting.
April 21, 2006 at 2:57 am
It's a question of balancing risk. What's the probability of the vulnerability being exploited and what damage might that do against the probability of the patch causing an issue...
April 20, 2006 at 6:29 am
Why shoulkd you want to remove the time?
Typically because you have been passed a datetime but want to select data for a range of complete days.
April 13, 2006 at 9:10 am
This comes up regularly. Ive tested most scenarios in the past and datediff/dateadd always comes out the fastest - often by a good margin. It also has the...
April 13, 2006 at 6:23 am
I would just emphasise : if there is ANY possibility of confusion for you or a successor, ALWAYS use parentheses. You cannot overclarify or overcomment code. Always think...
March 31, 2006 at 8:02 am
I would recommend always to use OUTER for clarity. As a general rule, never abbreviate commands even when the parser allows it. You never know who will have...
February 23, 2006 at 5:45 am
Remember that ASCII zero is C's (LPSTR) string terminator character. Sounds as if something is failing to read past it.
February 22, 2006 at 5:55 am
There cannot be a general answer. What are you going to use it for?
If it is to be deployed as part of an embedded device than there are specialist...
February 14, 2006 at 1:45 am
if Field_1 etc are indexed, you will be filtering the result set so that the udf is called for less rows (look at the query plans). The use of...
February 3, 2006 at 1:44 am
Viewing 15 posts - 106 through 120 (of 310 total)