We help IT Professionals succeed at work.
Get Started

SQL 2008 operand type clash: smalint is imcompatiable with date

Last Modified: 2012-05-12
hi all,

we have SQL replication running and on our replicated database users are getting errors in our app that related to SQL

so i went onto the sql database at that site that is replicated and started diagnosis

this command
Update Clients Set ContactNumberSecondary ='123' where ID = 13031

Msg 206, Level 16, State 2, Procedure sp_MSsync_upd_Clients_1, Line 0
Operand type clash: smallint is incompatible with date
The statement has been terminated.

this command runs fine
select * from Clients where  ID = 13031

ive searched and searched and have come up trumps, ive checked the table for datatypes and everything is fine, ive seen errors about column layout in the two tables, it matches

i run
SELECT table_name,ordinal_position,column_name,data_type,  is_nullable,character_maximum_length FROM
information_schema.COLUMNS WHERE table_name = 'Clients'
ORDER BY ordinal_position

on both tables and the spreadsheet attached shows both tables match completley

anyone know any other ways to troubleshoot and solve this?


Watch Question
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE