Solved

POWER ^ Exponential Function in a Computer DataColumn in a DataTable

Posted on 2011-09-19
2
1,263 Views
Last Modified: 2013-11-08
Does any one know how to use the exponential function in a computed column in a DataTable?

Thank you
0
Comment
Question by:vincentvanhst
2 Comments
 
LVL 8

Accepted Solution

by:
gena17 earned 500 total points
ID: 36560308
I think power is not directly supported in DataTables (see http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(v=vs.71).aspx for the full list of supported functions).

Perhaps, you can define a trigger and recalculate the desired column manually.
0
 
LVL 41

Expert Comment

by:graye
ID: 37009311
gena17 has the correct answer (so no points for me!)

However, here is an article you might wanna look at:  http://www.emmet-gray.com/Articles/ADO_Expressions.htm
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question