How can I save VB.NET user defined type in SQL2000 DataBase???
For example:
When I try execute this command the following error message is appear: "The name MyObj is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted."
What make I wrong???
Please Help.
[edit]Please use
For example:
Code:
Public Structure MyType
Public MyVar_1 As Integer
Public MyVar_2 As Boolean
End Structure
Dim MyObj as MyType
MyObj.MyVar_1 = 1000
MyObj.MyVar_2 = True
Dim MySQLCommand as New SqlCommand
MySQLCommand.Connection = *****
MySQLCommand.CommandText = "INSERT INTO cl_win_Sequr (TestColumn) VALUES (MyObj)"
What make I wrong???
Please Help.
[edit]Please use
Code:
tags [/ vb][/edit][/COLOR]
Last edited by a moderator: