ms sql server 2005 standard edition---I have given the task of doing a straight insert and replace into a table replacing some of the data in one column. looks like what they did was a select * from the table, exported it to excel and then added a column called newpath to the spreadsheet. they want the path column updated with the data they have populated the newpath excel column with.path column is the primary key in this table with two child tables. I understand that I will have to drop the primary key in the article table then drop the FKs in the child tables - make the changes to the child tables first, then the article table then add back the constraints. table DDL for the primary (parent) table below: Table DDL[Create table dbo.Article ( id int identity, IW_State VARCHAR(255) not null, path VARCHAR(255) not null, contentArea CHAR(10) not null, homepage CHAR(5) null, title NVARCHAR(400) null, summary NVARCHAR(1000) null, keywords NVARCHAR(50) not null, author NVARCHAR(50) null, type CHAR(10) not null, subArea CHAR(10) null, publishDate datetime not null, expireDate datetime not null, articleLanguage CHAR(5) not null, indexImage VARCHAR(255) null, eventStartDate datetime null, eventEndDate datetime null, eventLocation NVARCHAR(50) null, agentID CHAR(10) null, ccText ntext null, indexImageCaption NVARCHAR(100) null)
not really sure how to code the SQL for this "insert a replace" can anyone help?