Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 After upgrade

Author  Topic 

kumarich1
Yak Posting Veteran

99 Posts

Posted - 2009-09-11 : 11:00:14
After upgrading sql 2000 to sql 2005 and flagged compatibility to 90. I am getting below error for a simple update statement.

update Test
set name = 'ABC'
where employee like '%ne' and project = 'PP'

Error:
Msg 213, Level 16, State 7, Procedure sp_who, Line 42
Insert Error: Column name or number of supplied values does not match table definition.

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2009-09-11 : 13:26:38
check collation
Go to Top of Page

kumarich1
Yak Posting Veteran

99 Posts

Posted - 2009-09-11 : 13:53:48
collation is same on all columns ,tables and databases
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-11 : 16:23:56
It sounds like you have a trigger on the Test table.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

shah429
Yak Posting Veteran

52 Posts

Posted - 2009-09-12 : 16:56:42
Could you please post the table definition? I believe it has something to do with the data type of the column you are trying to insert value into.
Go to Top of Page
   

- Advertisement -