Paged: It was throwing invalid statement exceptions because the statement turned out to be SELECT x FROM xWHERE.
Insert: Using SCOPE_IDENTITY() instead of @@Identity. (FransBouma/Massive#18)
SELECT x FROM xWHERE
Added a space before WHERE in Paged to fix invalid statement error.
Changed to 'SCOPE_IDENTITY()' instead of '@@IDENTITY'
THank you for this - already fixed the Paging bits. Also you can't use SCOPE_IDENTITY with SQL CE.. so it stays :(.