Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

MS SQL ROUND() vs. VB ROUND()

 
   Database Help (Home) -> Programming RSS
Next:  SELECT * FROM @Table not using Dynamic SQL (if ex..  
Author Message
LUIS

External


Since: May 29, 2007
Posts: 23



(Msg. 1) Posted: Fri Jul 04, 2008 3:24 pm
Post subject: MS SQL ROUND() vs. VB ROUND()
Archived from groups: microsoft>public>sqlserver>programming (more info?)

--
Luis Garcia
IT Consultant

 >> Stay informed about: MS SQL ROUND() vs. VB ROUND() 
Back to top
Login to vote
LUIS

External


Since: May 29, 2007
Posts: 23



(Msg. 2) Posted: Fri Jul 04, 2008 3:36 pm
Post subject: RE: MS SQL ROUND() vs. VB ROUND() [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have found that ROUND() command are different among MS products (VB, SQL,
Excel, VBA, etc) in versions like (Banker's Rounding, Random Rounding,
Rounding Up, Rounding Down, etc.)
In my Apps, I use VB6 and MSSQL 2000, arithmetic operations were done in
both plataforms (not crazy way until I notice this...). THAT IS THE PROBLEM.
SOLUTIONS:(Please advise me)
1. Use only one plataform for arithmetic operations (Best).
2. Create a function that invoke a SP which returns ROUND() from SQL (Does
it decrease or impact performance?)
3. Other

Beforehand, thank you very much.

--
Luis Garcia
IT Consultant


"LUIS" wrote:

>
> --
> Luis Garcia
> IT Consultant

 >> Stay informed about: MS SQL ROUND() vs. VB ROUND() 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
why does CAST round - declare @test decimal(18,9) SET @test = CAST('12.75' AS decimal) PRINT @test result = 13.00 Why not 12.75, what am i doing wrong??

round function does not work as expected - I am using the round function in a view in order to display data to a specified number of decimal places. In general it displays the data as expected but occasionally there are values that are displayed to many decimal places. Maybe I should be usin...

Hourly job running exactly 5 minutes after a round hour - Hi Expert, I defined a job that runs every hour using the job wizard. However, I would like it to start running 5 minutes after each round hour i.e. 12:05:00, 13:05:00, 14:05:00 etc How can I define such scheduling? Thanks, Avi

need help with query - I want to sum the records in a table (u) which have 'P.M.' in a field value and test against a fixed limit something to the effect of : case when SUM(substring(u.sTime,1,4)='P.M.') <= 64 Then .... except it should work ...

Next?? - I have a field stored as NTEXT(16). I need to replace some of the content in this field. I know the replace function doesnt work. I see there is UPDATETEXT - is this the ONLY way to do it ?? 'cos it looks quite complicated? thanks, Justin
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]