Advertisement

08.11.2005 at 08:43AM PDT, ID: 21523834
[x]
Attachment Details

Cannot update identity column

Asked by a1x in MS SQL Server

Tags: identity, update, column, cannot

How do I change the value of an identity column for a record?

I am trying to do something like the following, where ID is an identity column.

UPDATE COMPANY SET ID = 7 WHERE ID = 6Start Free Trial
[+][-]08.11.2005 at 08:51AM PDT, ID: 14652660

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2005 at 08:54AM PDT, ID: 14652703

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2005 at 08:55AM PDT, ID: 14652717

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2005 at 10:53AM PDT, ID: 14654034

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: identity, update, column, cannot
Sign Up Now!
Solution Provided By: acperkins
Participating Experts: 4
Solution Grade: A
 
 
[+][-]08.12.2005 at 12:11PM PDT, ID: 14663827

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.12.2005 at 12:12PM PDT, ID: 14663833

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.23.2005 at 08:23AM PST, ID: 15543023

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.23.2005 at 08:38AM PST, ID: 15543140

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.09.2006 at 07:48AM PST, ID: 16145626

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2006 at 03:09AM PST, ID: 16172884

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32