J
JohnJohn
Hello.
I'm trying to change the NumericScale property for a column but am receiving
errors. Here's the code I'm using:
Dim m_adox_Catalog As ADOX.Catalog
Dim adox_Table As ADOX.Table
Set m_adox_Catalog = New ADOX.Catalog
Set adox_Table = m_adox_Catalog.Table(MyTable)
'error occurs on following line:
adox_Table.Columns.Item(FldName_sn_RateCap).NumericScale = 4
The last line above generates the following error:
Run-time error '-2147217837 (80040e53)'
Method is not supported by this provider.
This only happens when I attempt to ALTER the column. The above line would
work perfectly fine when I create the column. But I need the capability to
alter the column. Also, I tried using the following syntax that generates
the exact same error:
adox_Table.Columns(FldName_sn_RateCap).NumericScale = 4
If there's any alternative you know of to doing it this way, please let me
know how to do it (with specific syntax).
Thank you!
John
I'm trying to change the NumericScale property for a column but am receiving
errors. Here's the code I'm using:
Dim m_adox_Catalog As ADOX.Catalog
Dim adox_Table As ADOX.Table
Set m_adox_Catalog = New ADOX.Catalog
Set adox_Table = m_adox_Catalog.Table(MyTable)
'error occurs on following line:
adox_Table.Columns.Item(FldName_sn_RateCap).NumericScale = 4
The last line above generates the following error:
Run-time error '-2147217837 (80040e53)'
Method is not supported by this provider.
This only happens when I attempt to ALTER the column. The above line would
work perfectly fine when I create the column. But I need the capability to
alter the column. Also, I tried using the following syntax that generates
the exact same error:
adox_Table.Columns(FldName_sn_RateCap).NumericScale = 4
If there's any alternative you know of to doing it this way, please let me
know how to do it (with specific syntax).
Thank you!
John