JustMarie
SSCertifiable
Points: 7771
More actions
February 24, 2014 at 4:40 pm
#286013
Comments posted to this topic are about the item Calendar Table by Month
terry.home
Ten Centuries
Points: 1004
March 14, 2014 at 4:00 pm
#1697350
Msg 139, Level 15, State 1, Line 0
Cannot assign a default value to a local variable.
Msg 137, Level 15, State 1, Line 29
Must declare the scalar variable "@End".
Msg 137, Level 15, State 2, Line 81
fdimartini
SSC Veteran
Points: 269
September 22, 2014 at 2:03 pm
#1747236
"Msg 139, Level 15, State 1, Line 0
Cannot assign a default value to a local variable."
You probably have an older version of sql. instead of
@variable tinyint =15
do this:
@variable tinyint
set @variable = 15
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply