CASorter
asked on
SQL Server 2012 - Incorrect syntax near '44446'.
Hello all,
I'm trying to run this simple UPDATE statement on a SQL Server 2012 and I keep getting an error that reads:
Msg 102, Level 15, State 1, Procedure category_UTrig, Line 9
Incorrect syntax near '44446'.
The statement is as follows:
"update category set CatConveyorStoreNumber=0
where CatConveyorStoreNumber is null"
The CatConveyorStoreNumber is a SmallInt field.
The database that I'm trying to modify came from a SQL server 2008, where it runs without any problems.
Any ideas?
I'm trying to run this simple UPDATE statement on a SQL Server 2012 and I keep getting an error that reads:
Msg 102, Level 15, State 1, Procedure category_UTrig, Line 9
Incorrect syntax near '44446'.
The statement is as follows:
"update category set CatConveyorStoreNumber=0
where CatConveyorStoreNumber is null"
The CatConveyorStoreNumber is a SmallInt field.
The database that I'm trying to modify came from a SQL server 2008, where it runs without any problems.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have a trigger after update or instead of update on [category] which is erroneous. So take a look at it.
thanks