G
Guest
Hello,
Here is part of my code to retrieve some data from FoxPro and populate
DataGrid. It works fine. What is the best and easiest way to import data from
Dataset to a table in SQL Server.
' populate dataAdapter and dataset
cmdSelect = Conn.CreateCommand
cmdSelect.CommandText = sqlStr
Da.SelectCommand = cmdSelect
Da.Fill(Ds, "ReturnedRows")
retValue = Ds.Tables(0).Rows.Count()
Response.Write("Row Count: " & retValue)
' populate datagrid
DataGrid1.DataSource = Ds
DataGrid1.DataMember = "ReturnedRows"
DataGrid1.DataBind()
Thanks,
Jim.
Here is part of my code to retrieve some data from FoxPro and populate
DataGrid. It works fine. What is the best and easiest way to import data from
Dataset to a table in SQL Server.
' populate dataAdapter and dataset
cmdSelect = Conn.CreateCommand
cmdSelect.CommandText = sqlStr
Da.SelectCommand = cmdSelect
Da.Fill(Ds, "ReturnedRows")
retValue = Ds.Tables(0).Rows.Count()
Response.Write("Row Count: " & retValue)
' populate datagrid
DataGrid1.DataSource = Ds
DataGrid1.DataMember = "ReturnedRows"
DataGrid1.DataBind()
Thanks,
Jim.