Hai guys,
- What datatype you would suggest for storing barcode values in sql server 2005?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A barcode typically simply is a graphical representation of some string value, e.g. letter and numbers – so I’d just store that string (usually a product code or something like that) in a VARCHAR(x) field and not bother storing the actual graphical barcode at all.
If you must store the graphical representation of the barcode for whatever reason, use a VARBINARY(MAX) field – gives you up to 2 GB of binary storage.