Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Updateting Oracle from Excel

Perhaps you are using a read-only connection?

If not, then it may be that there is a setting in Oracle that you need to
change.

MH

"Sonnich" wrote in message
ups.com...
Hello

I have no problems reading, but writing (update...) fails, as:
Runtime error 3146 - ODBC--call failed.

My code:


Set oWS = CreateWorkspace("blabla", "blabla", "blabla",
dbUseODBC)
oWS.DefaultCursorDriver = dbUseODBCCursor

oData = oWS.OpenConnection("blabla", dbDriverNoPrompt, True, _
"ODBC;DSN=blabla;UID=blabla;PWD=blabla")

Dim oConn As DAO.Connection ' database connection
Set oConn = oData.Connection ' open it
'If oConn.Updatable Then ' this is false...
oConn.Execute "update blabla set blabla where 1=0" ' test!

BR
Sonnich



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to run an Oracle PL\Sql procedure within Excel? mowee Excel Discussion (Misc queries) 1 January 22nd 10 03:54 PM
Is it possible to run an Oracle PL\Sql procedure within Excel? mowee Excel Discussion (Misc queries) 0 January 22nd 10 03:04 PM
Excel VBA against Oracle Johnson Shine Excel Discussion (Misc queries) 3 January 14th 07 02:05 PM
Connect to Oracle using Microsoft ODBC for Oracle Kent Excel Programming 2 January 18th 06 03:53 AM
ORACLE SEQUENCES IN EXCEL Román Valoria Excel Programming 1 January 10th 06 07:59 PM


All times are GMT +1. The time now is 02:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"