View Single Post
  #2 (permalink)  
Old March 25th, 2008, 12:02 PM
Lauramc's Avatar
Lauramc Lauramc is offline
I like Data Cubes too...

 
Join Date: Mar 2008
Location: Far Far Away
Posts: 35
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 1
Lauramc is on a distinguished road

Awards Showcase
Microsoft SQL Server 
Total Awards: 1

Default

Hey jmh! What is the data type of the @statusCode? If it is not a char or varchar, you have to convert it so it will work in a dynamic procedure. Try CAST(@statuscode as varchar(10)) ... or whatever length you need if 10 is not enough. That should help

Comments on this post
jmurrayhead agrees: Indeed, this needed to be done