Display: Cloud | List
Most Popular Tags
Results (1 total) All > .net (x) > sqldbtype (x)
code for making CREATE TABLE statements (SQL-CLR Type Mapping (LINQ to SQL))
PublicSharedFunction MakeCreateTableStatements(ByVal ds As DataSet) AsString Dim result AsString = String.Empty Dim sb AsNew StringBuilder ForEach dt As DataTable In ds.Tables sb.Append("CREATE TABLE " + dt.TableName + " (") sb.Append(MakeCreateTableStatements(dt))sb.Append(")") sb.Append(vbCrLf + "GO" + vbCrLf) Next result = sb.ToString()Return result EndFunction P
Last modified by Joe Zen on 5/28/2008 3:25:39 PM
Tags:  .net  convert  datatype  sqldbtype
Page view tracker