Viewing 15 posts - 24,196 through 24,210 (of 26,490 total)
Take a look at this little bit of test code and see if you can use what it demonstrates (at least it works on my system here at work).
declare @ADate...
September 24, 2008 at 2:55 pm
And, to throw more into the mix, actual performance in the OP's environment may be different due to storage/indexing on the tables.
I guess the best way to test would be...
September 24, 2008 at 1:52 pm
GSquared,
Can you test it with the additional criteria in the original query: where t.fiscal_year = 2008?
This may (or may not) make a difference in the queries.
I'd try, but I don't...
September 24, 2008 at 1:43 pm
Be sure to test both ways. I'd be interested in knowing which works better/easier for you.
😎
September 24, 2008 at 12:38 pm
This is how I would rewrite the query you originally posted:
SELECT
eventId
,startTime
...
September 24, 2008 at 12:25 pm
True, if running x64, you don't need the /3GB switch, but the OP didn't indicate what version they are running.
We are running a mixed environment ourselves; SQL Server 2005 x32...
September 24, 2008 at 9:44 am
Madhivanan (9/24/2008)
Lynn Pettis (9/24/2008)
September 24, 2008 at 8:32 am
Glen (9/24/2008)
Suggestion: upgrade the RAM to 4 GB. Cheap and effective.
Agree with the above, but be sure to add the /3GB switch to the boot.ini file or the extra memory...
September 24, 2008 at 8:30 am
Adrian Nichols (9/24/2008)
I need a sample query to only lift record 2 and 4 as the others are not year long policies.
Lynn,
I believe that the records, 2 and 4, correspond...
September 24, 2008 at 8:02 am
There is another side to this. If the date fields are currently varchar(8) with the dates formatted yyyymmdd, what effect will changing the data type to datetime have on...
September 24, 2008 at 7:56 am
I'm getting confused. The original post asked to find records for year-long policies, yet the post with sample data seemed to be asking to find the policies that AREN'T...
September 24, 2008 at 7:47 am
create table #TestTab (
RowNum int,
AddressIdent int,
Address1 varchar(50),
DateChanged datetime);
insert into #TestTab (RowNum, AddressIdent, Address1, DateChanged)
select...
September 23, 2008 at 3:19 pm
Here is another way to skin a cat. I'm sure some of the gurus out there may come back and say this is still rebar, but it eliminates a...
September 23, 2008 at 3:12 pm
Actually, what I think is that the OP needs to post additional information, including sample data and expected results. This would greatly assist in determining a solution.
😎
September 23, 2008 at 2:45 pm
Viewing 15 posts - 24,196 through 24,210 (of 26,490 total)