-3

I am newbie to SQL Server. I have a transactional replication setup in my production environment. I am getting the below error while replicating from publisher to subscriber.

Conversion failed when converting the varchar value '* ' to data type int.
Error: 14151, Severity: 18, State: 1.

Kindly help me to fix this in replication setup.

Sankar
  • 6,908
  • 2
  • 30
  • 53
SujithTee
  • 125
  • 2
  • 3
  • 12

1 Answers1

1

Since you are using SQL SERVER 2008, You can use below query snippet to avoid this error

 SELECT
  CASE
    WHEN ISNUMERIC(@data) = 1 THEN CAST(@data AS int)
    ELSE NULL
  END
Sankar
  • 6,908
  • 2
  • 30
  • 53