•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 456,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,567 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 1062 | Replies: 2
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Is it somehow possible to retrieve a string and then convert it into a mathematical expression? for example i have this string '14200 * 5' and then i want to convert this into a mathematical formula so that i could get the result of it which is 71000.. .. i thought eval() function was available on MSSQL , is there such a function on MSSQL?
Thanks....
Thanks....
Hi,
You have to use the EXEC function but after some conc. ex:
you may need to use stored procedures.
You have to use the EXEC function but after some conc. ex:
EXEC('select ' + '14200 * 5')
you may need to use stored procedures.
It is never about the number of languages you know, you either have the logic of programming or you don't ...
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Starting Python (Python)
- leaves and nodes mathematical expression (C++)
- Mathematical expression reducing algorithm (C++)
- splitting a string and then converting (C#)
- processing/modifying a string (C++)
- arithmetic expression using lists (C++)
- matching regular expressions (Java)
Other Threads in the MS SQL Forum
- Previous Thread: How to multiply field by -1 under certain circumstances
- Next Thread: Problem with using FileMaker Pro with Sequel?


Linear Mode