Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Replication (2005)
 Trignometric functions

Author  Topic 

jogin malathi
Posting Yak Master

117 Posts

Posted - 2007-06-18 : 07:38:44
hi all

Can we use trignometric functions in stored procedures

or in database(back end) side instead of using those functions in frontend

Thanks in Advance

Malathi Rao

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-06-18 : 07:43:15
Yes. you can and you should. Front-end is ideally meant only for the presentation of the data in desired format and trignometric functions has nothing to do with the formatting of the data, but with the processing of data itself.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

jogin malathi
Posting Yak Master

117 Posts

Posted - 2007-06-18 : 07:57:48
quote:
Originally posted by harsh_athalye

Yes. you can and you should. Front-end is ideally meant only for the presentation of the data in desired format and trignometric functions has nothing to do with the formatting of the data, but with the processing of data itself.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"



Thank You
how can i write trognometric functions in select query or in stored procedures.

I mean are there any built_in functions for trignometrics functions

Malathi Rao
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-06-18 : 08:04:30
Yes. There are built-in trignometric functions:

[url]http://msdn2.microsoft.com/en-us/library/ms191457(sql.90).aspx[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

RocketScientist
Official SQLTeam Chef

85 Posts

Posted - 2007-06-27 : 13:59:03
There are the typical built-in functions you'd expect (sin(), cos(), tan()). They take input in radians in float, and output you'd expect. The biggest limitation is that they are float precision, if you need more than that you'll have to look elsewhere. Trigonometric functions are deterministic.

Go to Top of Page
   

- Advertisement -