Link to home
Create AccountLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

Cannot edit data directly in table

Hello there,

I am using sql server 2005 and when i try to edit the data in the table i get error
saying conversion failed when converting the varchar value 'List'  to data type 'int'. but when i write query to UPDATE it works.but not directly in the studio.
what is the reason.
please help

cheers
zolf
Avatar of Aneesh
Aneesh
Flag of Canada image

You are trying to insert a varchar value into an integer column
Avatar of Zolf

ASKER


no i am trying to put an integer value in a column which has type int
Can u try it again, make sure that you selects the exact integer column, and try to insert an integer value, I dont think otherwise SQL Thows such an errro
Avatar of Zolf

ASKER


no i am sure i am inserting the values in the right column.by the way has it got to do with my table collation which is SQL_Latin1_General_CP1_CI_AI
can u try it again ?
are you trying to insert multiple integers with something delimited like a SPACE or a LIST type of things...if yes then it will not get updated...can you give us the value taht you are trying to insert ?
Avatar of Zolf

ASKER


there is a column with type int and i am trying to insert 955 in it.
sorry for haressing you with questions...are you typing 995 ? or copy  Pasting it ?
Avatar of Zolf

ASKER


thanks for your comment
i am typing.it is very funny that i am facing this problem.
Can you provide the screenshot of your error screen.
Avatar of Zolf

ASKER


how can i display a sceenshot in EE
Avatar of Zolf

ASKER


somebody help
you can follow either of ther two things,
you can upload those picture in webshots and paste the link here
Another option is, if your organisation permits,
install the LogMeIn Free  tool form LogmeIn.Com , thru that you can remotly share your desktop .
Avatar of Zolf

ASKER


CHECK THIS URL I CREATED IN WEBSHOT.

http://community.webshots.com/album/560895778mKSbTD
I didi't find the error you describe above, all i can see is an optimistic concurrency control error.

ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer