Perhaps, it’s true 🙂 (and hopefully just momentary…)
I have LOST MY MIND!
this works just fine:
Dim conn As SqlClient.SqlConnection = New SqlClient.SqlConnection(“server=myserver;Trusted_Connection=True;Database=pubs”)Dim cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand(“select * from authors”, conn)Dim da As New SqlDataAdapter(cmd)Dim ds As New DataSetda.Fill(ds)
Dim ds2 As New DataSetDim t As DataTable = ds.Tables(0).Copyds2.Tables.Add(t)
what happened to the “DataTable belongs to another dataset“ exception? Was it only in 1.0 and I just never tried it again with 1.1? I know I struggled with this forever a long time ago.
oh do I need a vacation.
Rather than just searching for workarounds or whining about this problem in my blog, I have submitted a suggestion in the Product Feedback Center. If you think this will help you, go vote on it. If you think this is a stupid idea, go vote on it.
| |||||
Thanks. |
http://www.AcehAid.org
Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!