Link to home
Start Free TrialLog in
Avatar of rp
rpFlag for Portugal

asked on

Run stored code in database in runtime mode

Hi,
Is there any possibility to store code blocks  in a Database and then run  them in run-time mode ? Something like short codes in wordpress.

for ex.

if a = 0 then
   run func1
else
   run func2
endif



' Stored code
func1(byval myvar as integer) as integer
   
   
    return myvar/100

end sub
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

if you are referring to running commands on the sql server it is called aptly 'stored procedure'
Avatar of rp

ASKER

Hi,

No i need call vb.net functions (run vb.net commands) in runtime mode, but not inside my code. Call when i need but vb.net is called from a table in a database. Not sql.

best regards
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial