Sir I have problems in executing my pages with sqlserver 2008 while saving and updating the data i got an error as below in the code of line:
a= cm.ExecuteNonQuery();
The error is String or binary data would be truncated.
The statement has been terminated.
How can I resolve it. I am sending you the whole project with backup file of database.In it to logged in with the login page ,the loginname =SHESH and password =123 .Please sir give me the proper solution to the error
Coding Error
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kunal VaishyaRank #990 · 2K reputationPosted Apr 22, 2012, 9:49 PM EDT
I have seen you code please check your Query String you are passing data in more than actual length
like this
CREATE TABLE #t
(
CL varchar(1)
);
Insert into #t (CL)values('A')
It is Ok
Insert into #t (CL)values('ABB')
it Will give you error
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 22, 2012, 10:19 PM EDT
Can plese provide data which your enter (fill) from the page?