executing vb.net code stored in the database

dumbber

New member
Joined
Aug 31, 2006
Messages
2
Programming Experience
Beginner
hi all,


here is my requirement.I have vb.net code(example: dim strTest as string) stored in the database(sql server).I can read this line of code from the database,but,how do i execute this statement as though this was a normal vb code in the IDE.

Any help would be appreciated.

Thanks!
 

TechGnome

Well-known member
Joined
May 23, 2005
Messages
896
Programming Experience
10+
See if this of any use: http://www.devx.com/dotnet/article/7004

In a nutshell, you use the CodeDom objects to create the modules/classes, put the code into it, then compile it. You can compile it to a file, to be run later, or compile it in memory, then call it using some special means.

-tg
 

pasensyoso_manigbas

Well-known member
Joined
May 19, 2006
Messages
64
Programming Experience
Beginner
just what are you implying to do? Be specific.......
 

dumbber

New member
Joined
Aug 31, 2006
Messages
2
Programming Experience
Beginner
just what are you implying to do? Be specific.......

Thanks for your responses!

I have a set of VB code in the database in one of the columns.I need to read those vb code and then execute it in .NET IDE as though they were present as a normal line of code in the IDE.

database

column1(ID) column2(vbcode)
1 dim a as string
2 a="test"


so,I need to get these two lines of code and execute it in the VS.NET IDE as though they were present in the IDE as normal line of code.


Thanks!
 
Top Bottom