Your variable @intCompanyID is declared as INT - you can't mix this with VARCHAR when concatenating arguments.
Change WHERE intCompanyId = ' + @intCompanyID to WHERE intCompanyId = ' + CAST(@intCompanyID AS VARCHAR).
Ade
A Freudian Slip is when you say one thing and mean your mother.
For detail-enriched answers, ask detail-enriched questions...[/url]