S
Slavan
I have an update statement that I'm executing against Oracle database
from my C# code and it won't work.
UPDATE MenuCaptions SET Caption = N@Caption WHERE MenuId = @MenuId AND
CultureId = @CultureId
Caption is an nvarchar type. MenuId and CultureId are integers.
I get Exception with the following message: ORA-00933: SQL command not
properly ended.
It seems that problem lies in Caption column, because when I changed
command text to:
UPDATE MenuCaptions SET MenuId = @MenuId WHERE MenuId = @MenuId AND
CultureId = @CultureId
it would execute with no exceptions. Also, when I tried to execute
following statement from SQL editor in TOAD:
UPDATE MenuCaptions SET Caption = N'My Caption' WHERE MenuId = 1 AND
CultureId = 1
it would successfully update the record. I can't figure out why I am
getting exception.
Any help would be appreciated.
from my C# code and it won't work.
UPDATE MenuCaptions SET Caption = N@Caption WHERE MenuId = @MenuId AND
CultureId = @CultureId
Caption is an nvarchar type. MenuId and CultureId are integers.
I get Exception with the following message: ORA-00933: SQL command not
properly ended.
It seems that problem lies in Caption column, because when I changed
command text to:
UPDATE MenuCaptions SET MenuId = @MenuId WHERE MenuId = @MenuId AND
CultureId = @CultureId
it would execute with no exceptions. Also, when I tried to execute
following statement from SQL editor in TOAD:
UPDATE MenuCaptions SET Caption = N'My Caption' WHERE MenuId = 1 AND
CultureId = 1
it would successfully update the record. I can't figure out why I am
getting exception.
Any help would be appreciated.