dbTalk Databases Forums  

Error Converting nVarchar to numeric

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Error Converting nVarchar to numeric in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Satish Sainath
 
Posts: n/a

Default Error Converting nVarchar to numeric - 02-26-2004 , 10:50 AM






I am trying to issue a MDX query from SQL which would insert the flattened
result sets into a temporary table. The table is defined below

Create table #Tb1(
col1 varchar(255),
col2 int,
col3 decimal(15,2),
col4 decimal(11,2),
)

In the MDX query, I have calculated members with the format string property
set as
FORMAT_STRING = ''#.00''.
When I run the query, i get the result set without any formatting i.e. i get
numbers like 15.234566 and when i try to import it into the table i get the
"Error Converting nVarchar to Numeric". Note that there was no overflow
error.

Question 1:
How do i format flattened rowsets which uses calculated members
Question 2:
why am i getting the error

Thanks
Satish



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.