D
D2
Hi All,
I am trying to run the following query from OleDbCommand object but
getting an exception.
UPDATE [Files] SET FilePath = REPLACE(FilePath, 'd:\\', 'c:\\')
Exception is:
Undefined function 'REPLACE' in expression.
Above query executes fine from within access but throws exception when
used from code.
I understand that the Replace() method is available from access but
not from oledb. I'm just wondering what is the best approach to
achieve the same results(as given by above query) from code?
Cheers!
d2
I am trying to run the following query from OleDbCommand object but
getting an exception.
UPDATE [Files] SET FilePath = REPLACE(FilePath, 'd:\\', 'c:\\')
Exception is:
Undefined function 'REPLACE' in expression.
Above query executes fine from within access but throws exception when
used from code.
I understand that the Replace() method is available from access but
not from oledb. I'm just wondering what is the best approach to
achieve the same results(as given by above query) from code?
Cheers!
d2