function in command text - ASP.NET

casper

Member
Joined
Jun 6, 2006
Messages
10
Programming Experience
Beginner
can you really have a function in the command text?

I have a line of code as below:

oCommand.CommandText = "UPDATE [SHEET1$] SET TEST = replace([test], '~', ';')"

I keep getting an error "Undefined function 'Replace' in expression"
 
The code that you put in the CommandText gets executed by the database engine, so you can include any functions that are supported by the database engine. Obviously Replace is not supported by the Jet OLEDB provider for Excel.
 

Latest posts

Back
Top