Unable to edit data in table in Management Studio 2005
- From: LenaMsdn08 <LenaMsdn08@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 Feb 2009 07:24:07 -0800
I'm having trouble editing data in a table in SSMS 2005, the way one could do
in Enterprise Manager. For example, I have this test table:
CREATE TABLE [dbo].[TestTable](
[TestID] [int] IDENTITY(1,1) NOT NULL,
[CreatedOn] [datetime] NOT NULL CONSTRAINT [DF_TestTable_CreatedOn]
DEFAULT (getdate()),
[associateID] [varchar](512) NULL,
[employeeID] [varchar](512) NULL,
[fname] [varchar](512) NULL,
[lname] [varchar](512) NULL,
CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED
(
[TestID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
with one line of data
2 2008-08-01 00:25:57.570 158045 12345678 Lena Nilsson
In the left-hand pane I right-click the name of the table and select "Open
Table". Then I go in, click in one of the fields, make a change, and click on
another row to save it. Instead I get an error message "Data has changed
since the Results pane was last retrieved. Do you want to save your changes
now? (Optimistic Concurrency Control Error)" . When I click "Yes" to update
anyway, I get another error "No row was updated. ... Error Source:
Microsoft.VisualStudio.DataTools. Error Message: The updated row has changed
or been deleted since data was last retrieved." So far I have not been able
to make it save the data.
I've seen an article in the Knowledge base (KB925719) about this error, but
none of those circumstances apply to my table. According to the KB article,
this issue occurs if the following conditions are true:
* The table contains one or more columns of the text or ntext data type.
* The value of one of these columns contains the following characters:
o Percent sign (%)
o Underscore (_)
o Left bracket ([)
* The table does not contain a primary key.
I don't see any of those conditions applying to my table.
The system informatiion from SSMS Help, About is
Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 2000.085.1132.00 (xpsp.080413-0852)
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 7.0.5730.11
Microsoft .NET Framework 2.0.50727.3082
Operating System 5.1.2600
How can I get around this error?
.
- Follow-Ups:
- RE: Unable to edit data in table in Management Studio 2005
- From: Mark Han[MSFT]
- RE: Unable to edit data in table in Management Studio 2005
- Prev by Date: Error consql 2005 en windows xp
- Next by Date: Pros and Cons of CASE SENSITIVE COLLATION SETTINGS
- Previous by thread: Error consql 2005 en windows xp
- Next by thread: RE: Unable to edit data in table in Management Studio 2005
- Index(es):
Relevant Pages
|