Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADOX support using Default properties

7360Jul 31 2003
Hi,

during porting a large project based on ADOX to Oracle OLDEB provider
we get Runtime Error 3265.
See above code. It works for using the Nullable properties but fails using
the Default properties. We don't like to change the CODE using SQL scripts for
create default column values [ This code works fine for MS SQLSERVER ].

Private Sub Command1_Click()
Dim cn As New ADODB.Connection

Dim strCn As String
Dim cat As New ADOX.Catalog
Dim tbl As New ADOX.Table
Dim col As String


strCn = "Provider=OraOLEDB.Oracle;User ID=scott;password=tiger;Data
Source=SUN920"
cn.Open strCn
Set cat.ActiveConnection = cn
Set tbl.ParentCatalog = cat
tbl.Name = "ADOXTab"
col = "Col1"
tbl.Columns.Append col, adVarChar, 5
'
' Error Code: Runtimer Error 3265 is returned if using Default properties
' No error comes up if using Nullable properties
'
'tbl.Columns(col).Properties("Default") = "Hugo"
tbl.Columns(col).Properties("Nullable") = True
cat.Tables.Append tbl

Set tbl = Nothing
Set cat = Nothing
cn.Close
MsgBox "Done"
End Sub

Any workarounds to create a table with default properties using ADOX ?
Did Oracle OLEDB provider fully support ADOX API ?

Thx Helmu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2003
Added on Jul 31 2003
0 comments
718 views