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
Speedometer chart
Index fragmentation
Clean CRLF from text file being imported into SQL2000
server test.net at level_15 or view_access requires a username and password.
ILLEGAL VIEW NAMES VISUAL FOXPRO?
Quick and Dirty Access 2007 Sync
Can't resize form manually
Can SQL Server databases be used within stand alone desktop applications?
Request for the permission of type 'Microsoft.SharePoint.Secu<wbr />rity.Share<wbr />PointPermi<wbr />ssion, Microsoft.SharePoint.Secur<wbr />ity, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e<wbr />9429c' fail
Backups failing due to folder depth on Backup Exec