Viewing 15 posts - 256 through 270 (of 576 total)
What version of SQL Server are you running?
Why don't you,
(A) Shrink the Database
(B) Shrink the Transaction Log
(C) Set the Trincate Log on Checkpoint or Simple recovery mode for the Database....
February 13, 2005 at 6:56 pm
Try this and tell me if it produces what you need!
SELECT feature_id, feature_text, feature_sequence, feature_date
FROM XYZ A
WHERE feature_date = (SELECT MAX(feature_date)
FROM XYZ B
WHERE A.feature_id = B.feature_id)
February 10, 2005 at 5:02 pm
Thank you.
I feel emabarassed! You know when you have been coding all day and your brain starts to slow down late in the afternoon? I get that often!
February 9, 2005 at 11:40 pm
How big is the Table? How many Rows?
The query optimiser should choose to use an index for col_a. If there is no Index on col_b then obviously an Index cannot...
February 9, 2005 at 6:55 pm
I believe what you are needing is the "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE" at the beginning of your Stored Procedure. By doing it this way, you are preventing anyone from...
February 8, 2005 at 4:28 pm
1) Have a look in BOL for an explanation under "Image data type\text, ntext, and image Data. This will give you an explanation as to how Image & Text fileds...
February 6, 2005 at 5:55 pm
Ok. I understand now.
So would it be correct to say that operator precedence is never an issue until an OR condition is used?
February 2, 2005 at 5:14 pm
You could just create a DTS package for it! In DTS you have the option of storing a result set to a text or csv file!
February 2, 2005 at 4:50 pm
Please have a look in BOL under "WHERE clause, predicate". This is where I'm basing my info from.
My 1st option is doing BETWEEN, AND, NOT IN
My 2nd option is doing NOT...
February 2, 2005 at 4:48 pm
I think I may steered everyone down the wrong path except for rhunt. I'm talking about opertaor precedence not perfromance!
BOL says that NOT comes first then AND followed by BETWEEN....
February 2, 2005 at 3:56 pm
The data integrity in this Database is up to sh*t. That is why the StartDate potentially has a NULL value.
I have just tried your solution and it works.
Thanks.
January 27, 2005 at 7:59 pm
My apologies, I was refering to dynamic sql!
January 27, 2005 at 7:31 pm
Yes you can! Have a go and you will see!
January 27, 2005 at 5:10 pm
PW,
You may have missed my question due to the amount of new threads. When you get a chance, could you please answer?
January 27, 2005 at 5:05 pm
Viewing 15 posts - 256 through 270 (of 576 total)