Hi Cj,
Does the table columns(you want to sum) be set to the correct number type
previously or maybe the original SQL script contains some syntax error?
Anyway, a quick way to verify it is execute it in QueryAnzlayer or
Management studio to see whethe the result is expected.
BTW, just for your information, ADO.NET dataset/datatable also support
computed column. But I think generated the value at database/sql side is
more effecient:
#Creating Computed Columns in a DataSet
http://www.objectsharp.com/cs/blogs/datasetfaq/archive/2004/05/20/466.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------