troubleshooting Question

SQL server data format mismatch question

Avatar of TickTech
TickTech asked on
Microsoft SQL Server 2008Microsoft SQL Server 2005
2 Comments1 Solution440 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
magarity

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 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 1 Answer and 2 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