I copied this incredible crosstab procedure, but for some reason, I get bunch of errors trying to create. I am sure I am doing something wrong. Thanks. Osher
Here are the errors received:
Server: Msg 170, Level 15, State 1, Procedure spCrossTabRun, Line 50
Line 50: Incorrect syntax near ','.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 118
Incorrect syntax near the keyword 'execute'.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 120
Incorrect syntax near the keyword 'insert'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 147
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 147
Must declare the variable '@AllParameters'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 148
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 149
Must declare the variable '@AllParameters'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 150
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 150
Must declare the variable '@ParseParam'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 151
Must declare the variable '@End'.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 157
Incorrect syntax near the keyword 'ELSE'.
Server: Msg 170, Level 15, State 1, Procedure spCrossTabRun, Line 213
Line 213: Incorrect syntax near '='.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 216
Incorrect syntax near the keyword 'ORDER'.
Here are the errors received:
Server: Msg 170, Level 15, State 1, Procedure spCrossTabRun, Line 50
Line 50: Incorrect syntax near ','.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 118
Incorrect syntax near the keyword 'execute'.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 120
Incorrect syntax near the keyword 'insert'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 147
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 147
Must declare the variable '@AllParameters'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 148
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 149
Must declare the variable '@AllParameters'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 150
Must declare the variable '@Cnt'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 150
Must declare the variable '@ParseParam'.
Server: Msg 137, Level 15, State 1, Procedure spCrossTabRun, Line 151
Must declare the variable '@End'.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 157
Incorrect syntax near the keyword 'ELSE'.
Server: Msg 170, Level 15, State 1, Procedure spCrossTabRun, Line 213
Line 213: Incorrect syntax near '='.
Server: Msg 156, Level 15, State 1, Procedure spCrossTabRun, Line 216
Incorrect syntax near the keyword 'ORDER'.