G
Guest
Hi,
I've got a windows application / VS.NET 2002 / SQL Server 2000
I'm getting information from different tables of a Cobol DB and storing it
in a single table in a Dataset.
I need to copy all that information into a table of a SQL Server Database.
I've created that table with the same structure of the table in the
CobolDataset.
I'm using the Update method to fill the sqlserver database with the
information, is that right? if not, then please give me suggestions on how to
do it. if it's ok, then tell me why isn't working!
I show the datasets in datagrids and it's successfull (i can see the
information), there's no exception generated (put it in a try catch finally
and never goes to the catch)
Here's the code, tell me what's wrong? why is my sqlserver database still
empty?
Dim sqlautocomando As New SqlCommandBuilder(Me.SqlDataAdapter1)
Me.SqlConnection1.Open()
Me.SqlDataAdapter1.Fill(Me.DataSet11, "tcatalogo")
Me.DataSet11.Merge(ds, True)
Me.SqlDataAdapter1.Update(Me.DataSet11, "tcatalogo")
Me.dgsql.DataSource = Me.DataSet11
Me.SqlConnection1.Close()
pd: connection, adapter and sqldataset generated throw darg&drop and visual
interface. (i've done it manually too, but still not working.)
Thanks
I've got a windows application / VS.NET 2002 / SQL Server 2000
I'm getting information from different tables of a Cobol DB and storing it
in a single table in a Dataset.
I need to copy all that information into a table of a SQL Server Database.
I've created that table with the same structure of the table in the
CobolDataset.
I'm using the Update method to fill the sqlserver database with the
information, is that right? if not, then please give me suggestions on how to
do it. if it's ok, then tell me why isn't working!
I show the datasets in datagrids and it's successfull (i can see the
information), there's no exception generated (put it in a try catch finally
and never goes to the catch)
Here's the code, tell me what's wrong? why is my sqlserver database still
empty?
Dim sqlautocomando As New SqlCommandBuilder(Me.SqlDataAdapter1)
Me.SqlConnection1.Open()
Me.SqlDataAdapter1.Fill(Me.DataSet11, "tcatalogo")
Me.DataSet11.Merge(ds, True)
Me.SqlDataAdapter1.Update(Me.DataSet11, "tcatalogo")
Me.dgsql.DataSource = Me.DataSet11
Me.SqlConnection1.Close()
pd: connection, adapter and sqldataset generated throw darg&drop and visual
interface. (i've done it manually too, but still not working.)
Thanks