It appears that SQL CE does not support any procedural extensions at all; only DDL and DML like from the 1970s.
You will either have to put procedural logic in your application (C# or whatever) or go to an embeddable database with procedural extensions, like SQLite.