So, using this article (<http://www.sswug.org/articles/viewarticle.aspx?id=22848>)

```
Use master
Create table master.dbo.EvalRes (expVal real)
-go

Use databasename
GO
Create Function [dbo].[Eval] (@exp varchar(1000))
 returns real
as
begin

   declare @ans real
   declare @osqlStmt varchar(1000)

   set @osqlStmt = 'osql.exe -S Server\Instance -U evaler -P evaler -q ' + '" Insert into master.dbo.EvalRes (expVal) select ' + @exp + '"'
   exec master..xp_cmdShell @osqlStmt
   select @ans = expVal From master.dbo.EvalRes
   set @osqlStmt = 'osql.exe -S Server\Instance -U evaler -P evaler -q ' + '" delete master.dbo.EvalRes ' + '"'
   exec master..xp_cmdShell @osqlStmt
   return @ans
end

GO
Select  dbo.Eval('(7+4)*6-1-(3*4)+3')       
        as CalcPrice7
GO

```

I have created the table and an account specifically for accessing the evalres table. It works as desired. I substitute numerals for text in stored formulas that vary with each record:

```
BASE + Taxes + MARKUP
VALUE + Freight * .01

```

In our business model, we provide the server, so all this is set up before hand. 

Questions:

If I have a proc that uses `dbo.Eval` 100 times or more, will this affect general server performance? 

If I'm writing and deleting the one cell hundreds of times a day, how will this affect the master database performance?

Will I need a maintenance plan on the master to account for this?

Any other drawbacks?