SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Migrating isql command to sqlcmd in SQL 2005 Issue


Migrating isql command to sqlcmd in SQL 2005 Issue

Author
Message
daravindkutti
daravindkutti
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 33
The following is the isql command which works
isql /S IMGTW011 /d ODR_DTEST /w600 /E /n h /s "|" /Q "exec upTransMinor91" /o d:\trans_Minor_91.out
The output for 2 fields in isql looks like
Interest Rate Unit_Prc/Div_Rt
0.071250 0.000000


The Output of the sqlcmd
SQLCMD /S IMGTW011 /d ODR_DTEST /w600 /E /n h /s "|" /Q "exec upTransMinor91" /o d:\trans_Minor_91.out
Interest Rate Unit_Prc/Div_Rt
7.1249999999999994E-2 0

The Precision of the above fields changed totally when i run it from isql & SQLCMD. I am running the same Stored Procedure in both places

The following is the Query which is in the Stored Procedure

Select "Interest Rate" = ISNULL(Interestt, 0.0),
"Unit_Prc/Div_Rt" = ISNULL (Per_Unit_Rt,0.0)
from Table

Not sure why this is happening. Any Help on this will be Greatly Appreciated
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search