0

I am trying to insert the data in to sql from an excel sheet. My excel sheet containing details are

Product Id            Youtube Url

23345566               www.example.com
2514                   www.example.com

the code is working correctly.but when the product id is big(more tha 4 numbers)it will inserted like 2.33456e+007.means the second id inserted correctly,but the first id inserted like like 2.33456e+007.Anyone know what is the problem??

3
  • But some times the Product id having character values...... Commented Oct 4, 2013 at 10:44
  • 1
    change the Product Id datatype to varchar(100) Commented Oct 4, 2013 at 10:45
  • 1
    Your C++ code is picking numbers, use .Text to pick strings. Commented Oct 4, 2013 at 10:47

1 Answer 1

2

You need to format your excel column Product ID as Text.

Sign up to request clarification or add additional context in comments.

1 Comment

Or as Number without decimal places!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.