Viewing 15 posts - 13,306 through 13,320 (of 13,460 total)
EM is not a catch all edit all editor; it does a good job on many things, but not all things.
making a grid that could allow the editing of a...
Lowell
August 11, 2005 at 8:01 pm
are you sure about the floor function returning an approximate number? the BOL says it returns the integer portion of the value, and returns it as the same data type.
I...
Lowell
August 11, 2005 at 10:41 am
Phil's reply is spot on; exactly what I would have suggested for a specific date it identifies all projects open on the date passed in;
and if you wanted to test...
Lowell
August 11, 2005 at 6:11 am
yet another version:
declare @m as money
set @m = 200.2365
select floor((@m * 100)) / 100
results:
200.2300
Lowell
August 10, 2005 at 8:35 am
I think you can assume that if getdate() is between a projects start and end date, then it is active; that's pretty straight forward.
select * from projects where getdate() between...
Lowell
August 10, 2005 at 6:03 am
I'll tell you, i love this distraction; Scott's function works well, but I seem to get a much smaller result set than Dewaynes.
I used this SQL to find items within...
Lowell
August 9, 2005 at 9:30 am
sorry; i wanted the conversion for the distance calculation to miles; the "distance" column is a value, but i don't know what kind of units it's supposed to be.
i don't...
Lowell
August 9, 2005 at 8:01 am
ok i have that same zipcode database , and this SQL seems to work:
select SQRT(POWER((38.492497 - latitude),-2) + POWER((-121.404807 - Longitude),2) ) as distance ,zipcodes.* from zipcodes
where SQRT(POWER((38.492497 - latitude),-2) ...
Lowell
August 9, 2005 at 7:45 am
there's nothing wrong with using the IN operator and having only one item in the selection list:
so if [#ABN_RUInput] only has one row witht he value 220056 , it...
Lowell
August 8, 2005 at 8:38 am
additional instances must be identified by IP AND port number
note the comma after the ip address)
you should also be able to connect to...
Lowell
August 5, 2005 at 10:35 pm
sounds to me like the decision to pull everything out into 4 tables was a mistake, since you need to query all 4 tables anyway. Is there a difference really...
Lowell
August 4, 2005 at 6:10 am
I'm under the impression that a lot of the backup time is SQL server finding/creating/reserving contiguous harddrive space;
once it has the contigous space it goes pretty fast putting the...
Lowell
August 3, 2005 at 6:33 am
instances can only be dropped; they cannot be renamed.
uninstalling all versions of sql server, and then installing sql2005 will allow you to install sql20005 as the defaul instance.
Lowell
July 29, 2005 at 8:34 am
By conditional counts i thought this is what you meant:
select
Count(ID) as TotalRecords
case when isnull(Processed,0) = 0 then 1 else 0 end as RecordsNotProcessed,
case when isnull(Processed,0) = 1 then 1 else 0...
Lowell
July 29, 2005 at 7:33 am
that was my point...the example i provided takes the '2A' into consideration by grabbing the substring of the first character, then you get your claim [version?] of '1' or '2'...
Lowell
July 27, 2005 at 9:59 am
Viewing 15 posts - 13,306 through 13,320 (of 13,460 total)