Avatar of TickTech
TickTech
 asked on

SQL server data format mismatch question

New to SQL server, curious about the mismatched data type situation. Instead of spending a couple of hours to test a variety of situations with the possibility of missing some scenarios, I want to tap into the experience of the experts for a quick learn.

In some programming languages, when two different formats meets, for example,  a 2 byte number type meets a 8 byte number type, then all results will be the 8 byte, automatically. We are safely assume and call the resulting variable using the 8 byte number type. Same for some text format as well.

So in SQL server, what is the rule for auto convert to bigger data type?
Microsoft SQL Server 2008Microsoft SQL Server 2005

Avatar of undefined
Last Comment
TickTech

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
magarity

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
TickTech

ASKER
Thanks. I have no idea there is a chart like this. It saved a ton of time for me.
Your help has saved me hundreds of hours of internet surfing.
fblack61