If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > My SQL vs MS SQL PROBLEM,HELPP !!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-09, 03:35
Nune Nune is offline
Registered User
 
Join Date: Jul 2009
Posts: 6
Red face My SQL vs MS SQL PROBLEM,HELPP !!!

I'm placing this question in this forum either, as I'm not sure if MS SQL forum is right forum for this.

Hello I need help ,

I have this formula

select ((m * power(2,7) + n) | 0x80000000) , where n,m are positive numbers,

in any case the result is different in both servers ,

for example if n=5,m=1 the result

in MS SQL 2000 is -2147483007 (negative number ),

but in My SQL 5 is 2147484289 (positive number ), but in my application I need negative number in result.

How can I adjust this formula in order to get the same result like in SQL Server ?

Can anyone help me to solve this issue ? Please help to solve this.

Any help is appreciated.

Thanks in advance.
Edit/Delete Message
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On