Feb 5, 2009 #1 Saturn57 Programmer Aug 30, 2007 275 CA I have the following code that is throwing the error ('dataType' argument cannot be null. Parameter name: dataType) Code: Dim dt As New DataTable dt.TableName = "WorkRelease" dt.Columns.Add("JobNo", System.Type.GetType("System.Data.SqlTypes.SqlString"))
I have the following code that is throwing the error ('dataType' argument cannot be null. Parameter name: dataType) Code: Dim dt As New DataTable dt.TableName = "WorkRelease" dt.Columns.Add("JobNo", System.Type.GetType("System.Data.SqlTypes.SqlString"))
Feb 5, 2009 #2 RiverGuy Programmer Jul 18, 2002 5,011 US DataTables aren't tied to a specific database or dialect, so the proper syntax is the following Code: Dim dt As New DataTable dt.TableName = "WorkRelease" dt.Columns.Add("JobNo", System.Type.GetType("System.String")) Upvote 0 Downvote
DataTables aren't tied to a specific database or dialect, so the proper syntax is the following Code: Dim dt As New DataTable dt.TableName = "WorkRelease" dt.Columns.Add("JobNo", System.Type.GetType("System.String"))