Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sir,

I have take a column of Int Type for Contact No. in Sql Server 2008. while i have insert into this column there an error occur which is as follows:
Int is too Big or too Small

please help me out reg this error. this is very urgent for me. i will be very greatful to you.
Posted
Updated 4-Mar-13 0:19am
v2
Comments
Raje_ 4-Mar-13 6:11am    
I would go with varchar. better to declare varchar(your size) in sql table level, and before insering the contact number, validate this in your page level.
Nandakishore G N 4-Mar-13 7:33am    
mobile no needs 10 digits but int does not allows so mush bytes (+-)2^31...Therefore You can use Bigint or Numeric(10,0)

Use BigInt instead. or Make it as a Varchar(15). or Varchar(Your specified length)
 
Share this answer
 
Comments
Raje_ 4-Mar-13 6:12am    
+5, for suggesting varchar.
willington.d 4-Mar-13 9:59am    
Thanks Raje_
just change that datatype to bigint in database table
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900