Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats wrong with statement

Status
Not open for further replies.

scouter

IS-IT--Management
Aug 29, 2002
1
US
(Sqrt(Sqr(Lidgegevens.Xcoordinaat-Losplaatsgegevens.Xcoordinaat)+
Sqr(Lidgegevens.Ycoordinaat-Losplaatsgegevens.Ycoordinaat))) As Afstand

This is the sql code i put in a Delphi ADOquery,
but it keeps giving a function error on the SQRT,
Plz help me :(
 
Maybe it is not the SQRT() function at all.
MS SQL Server has a math function POWER(expression, y) to raise an expression to the y-th power; and SQUARE(expression) to square the expression.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top