troubleshooting Question

SQL: the conversion of the varchar value OVERFLOWED and int column

Avatar of Luis Diaz
Luis Diaz asked on
Microsoft SQL Server
17 Comments2 Solutions1474 ViewsLast Modified:
Hello experts,

I am trying to perform the following query but I don't know why I am having this error message.

SELECT 
P.SPoTInternalID,
P.Id,
EPM.NWSMGR_OLD_INTERNAL_Id
FROM mstt_schema.Project P
LEFT JOIN [RDITS-BI-QA1].[ECubeDWH].[dwh].[REF_NWS_Liste_Projects_Migrated] EPM
ON P.SPoTInternalID = EPM.NWSMGR_OLD_INTERNAL_Id
WHERE P.SPoTinternalID <> '' and  ([Version] = '1') and (Active = '1')

CONVERSION_FIELD.png
How should I cast my  fields in order to don't have the error message?

Thank you again for your help.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros