VB.NET Get SQLDBType ENUM from String
Posted on 2004-04-13
I am trying to convert a string to SQLDBType Enum. I have looked and looked at this and cannot seem to make it work (only examples I can find are in C#) Someone have the syntax for this?
Dim SQLDB As SqlDbType = [Enum].Parse(System.Type.GetType("SqlDbType"), "varchar", True).GetType.ToString