Microsoft
Software
Hardware
Network
Question : Export data from excel sheet to oracle
Hi Could anyone please help me with the update query. iam uploading data's from an access database to oracle table. here's my coding. please help me what would be the update query if i want to update the existing data in the oracle table. here's the coding for loading the data's , but i want the update query . please help me.
Dim xlconn As New OleDbConnection("Provider=
Microsoft.
Jet.OLEDB.
4.0;Data Source=C:\db1.mdb")
Dim xlda As New OleDbDataAdapter("select * from sheet1", xlconn)
Dim xldt As New DataTable
xlda.Fill(xldt)
xlda.Dispose()
xlconn.Close()
Dim conn As New OracleClient.OracleConnect
ion("Data Source=PRICING_DATA;User ID=PRICING;Password=pr1c1n
g")
'Dim DR As OracleClient.OracleDataRea
der
conn.Open()
Dim cmd As OracleClient.OracleCommand
= conn.CreateCommand
cmd.CommandText = "SELECT * FROM test_erp_crossreference"
cmd.ExecuteNonQuery()
Dim da As New OracleClient.OracleDataAda
pter(cmd)
Dim cb As OracleClient.OracleCommand
Builder = New OracleClient.OracleCommand
Builder(da
)
Dim ds As New DataSet
da.Fill(ds, "test_erp_crossreference")
For Each xlrow As DataRow In xldt.Rows
Dim dr As DataRow = ds.Tables("test_erp_crossr
eference")
.NewRow
For Each col As DataColumn In ds.Tables("test_erp_crossr
eference")
.Columns
dr(col.ColumnName) = xlrow(col.ColumnName)
Next
ds.Tables("test_erp_crossr
eference")
.Rows.Add(
dr)
Next
da.Update(ds, "test_erp_crossreference")
Response.Write("")
da.Dispose()
conn.Close()
Answer : Export data from excel sheet to oracle
select * from excel_table where product_key='somedata'
then get values for columns product_key abd product_no and update oracle table with their values
Random Solutions
Office Email Merge with email options (Read receipt, delivery receipt, etc)
Silverlight Listbox Binding
Access to Excel export questions
EMC Not working for Ex2010 RC on 2008R2 Server, WinRM error
Set non printable area in SSRS
One mailbox not receiving e-mail on exchange server 2003
SBS2003 with ISA jamming ADSL router
Record(s) can't be read; no read permission on 'x.mdb'
Access 2003 Hyperlink warning
SQL Question: Multiple tables and Group By