Hi

iam using sql server 2008 to deal with my DB, i have a column with 'int' data type when i insert number inside that column like "0025648" it return it to me "25648" without zeros why ? and how to solve this problem ?

Best Regard
IT_Techno

Recommended Answers

All 2 Replies

An integer column has no formatting so the zeroes are useless to it. Is there a reason you need it stored in the database like that? Adding zeroes is just a presentation issue.

I have changed my column datatype to "NVARCHAR", it's go on thnks for replay

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.