View Single Post
  #4 (permalink)  
Old March 25th, 2008, 12:11 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

Oh good! I am glad you got it sorted. Don't forget that when you execute it you have to do it like so: EXEC(@sql). As a rule I print it while I am testing the string i.e. PRINT @sql. The print will show you what the command looks like so you can tweak it if needed.