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
 Transact-SQL (2005)
 Eval

Author  Topic 

itaybarda
Starting Member

12 Posts

Posted - 2008-07-07 : 15:03:25
is there an eval function in mssql 2005?

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-07-07 : 15:15:38
Well, there's EXEC and sp_executesql which can do some of what eval (javascript) does.
What are you trying to do?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

itaybarda
Starting Member

12 Posts

Posted - 2008-07-07 : 15:56:09
i want to do something like this:

select 100 * 10 as field1, eval('100 * 10') as field2
Go to Top of Page

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2008-07-07 : 19:48:55
See CAST or CONVERT in Books Online (BOL). That should point you at the solution.

=======================================
Some people walk in the rain, others just get wet. -Roger Miller, musician (1936-1992)
Go to Top of Page
   

- Advertisement -