Click here to Skip to main content
16,004,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello every one.I'm doing a project where i am inserting member details.When i enter the details and click save button i am getting a error
"The conversion of the nvarchar value '9686333295' overflowed an int column".
I do not know what error is this.Please help me how can i resolve this error.That number is of phone number.It is declared as nvarchar().

Thank you.
Posted
Comments
Thomas ktg 27-Sep-13 5:59am    
Are you doing any conversion while inserting into SQL?
CPallini 27-Sep-13 6:09am    
Check if the database column has proper type (varchar), and posting your INSERT statement could help.

Change the Data type Int to Nvarchar(or)Bigint in relevant table
 
Share this answer
 
v2
That happens if you are explicitely or implicitely trying to convert the phone number string to an integer. See, for instance "SQL Server Error Message - Msg 248"[^].
 
Share this answer
 
you Can use Varchar(Max) datatype in your database

this will definatly help you out

SQL
phoneNo varchar(max),
 
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