Click here to Skip to main content
15,893,994 members
Home / Discussions / Database
   

Database

 
GeneralRe: Advice for product manager Pin
i.j.russell28-Feb-10 5:58
i.j.russell28-Feb-10 5:58 
GeneralRe: Advice for product manager Pin
treefirmy28-Feb-10 6:13
treefirmy28-Feb-10 6:13 
GeneralRe: Advice for product manager Pin
i.j.russell28-Feb-10 7:08
i.j.russell28-Feb-10 7:08 
GeneralRe: Advice for product manager Pin
Mycroft Holmes28-Feb-10 10:58
professionalMycroft Holmes28-Feb-10 10:58 
GeneralRe: Advice for product manager Pin
jgrogan17-Dec-10 3:34
jgrogan17-Dec-10 3:34 
Questionquestion in regard to updating using mssql Pin
tonyonlinux26-Feb-10 18:19
tonyonlinux26-Feb-10 18:19 
AnswerRe: question in regard to updating using mssql Pin
R. Giskard Reventlov26-Feb-10 19:54
R. Giskard Reventlov26-Feb-10 19:54 
AnswerRe: question in regard to updating using mssql Pin
Mycroft Holmes26-Feb-10 23:28
professionalMycroft Holmes26-Feb-10 23:28 
Well you're screwed, a primary key that is dependent on your user input BBrrrttt WRONG.

This is one of the most basic errors in database design. Like using a phone number or email address or ANY other user data as a PK/FK. Keys should be stupid, they should have absolutely NO other function than to maintain your data structure.

Solution - create another field,BookID int with identity on your book table, everywhere you use the ISBN go there and add the new field and populate it based on existing structures (isbn). Now change you FKs to the BookID fields, now remove the FKs for the isbn. NOW you can edit your ISBN.

It is a lot of work but you have to do it to correct the design error. Never put off fixing these errors, they get into the corners of your database and breed and shortly you are totally f***ed.
Never underestimate the power of human stupidity
RAH

Questionerror message 2754 Pin
reza assar26-Feb-10 9:44
reza assar26-Feb-10 9:44 
AnswerRe: error message 2754 Pin
Mycroft Holmes26-Feb-10 11:10
professionalMycroft Holmes26-Feb-10 11:10 
GeneralRe: error message 2754 Pin
reza assar28-Feb-10 2:11
reza assar28-Feb-10 2:11 
GeneralRe: error message 2754 Pin
Mycroft Holmes28-Feb-10 3:44
professionalMycroft Holmes28-Feb-10 3:44 
AnswerRe: error message 2754 Pin
reza assar11-Apr-10 9:29
reza assar11-Apr-10 9:29 
QuestionT-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe126-Feb-10 8:00
kilkfoe126-Feb-10 8:00 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
SilimSayo26-Feb-10 9:20
SilimSayo26-Feb-10 9:20 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Tim Carmichael26-Feb-10 9:22
Tim Carmichael26-Feb-10 9:22 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 10:59
professionalMycroft Holmes26-Feb-10 10:59 
AnswerRe: T-SQL Table Variable - Create a column for each row in a table Pin
Mycroft Holmes26-Feb-10 11:03
professionalMycroft Holmes26-Feb-10 11:03 
GeneralRe: T-SQL Table Variable - Create a column for each row in a table Pin
kilkfoe12-Mar-10 11:10
kilkfoe12-Mar-10 11:10 
Questionthe order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 3:37
Majid Shahabfar26-Feb-10 3:37 
QuestionRe: the order by clause is invalid in views inline functions ... Pin
i.j.russell26-Feb-10 4:35
i.j.russell26-Feb-10 4:35 
QuestionRe: the order by clause is invalid in views inline functions ... Pin
Chris Meech26-Feb-10 8:56
Chris Meech26-Feb-10 8:56 
AnswerRe: the order by clause is invalid in views inline functions ... Pin
Majid Shahabfar26-Feb-10 21:53
Majid Shahabfar26-Feb-10 21:53 
GeneralRe: the order by clause is invalid in views inline functions ... Pin
Chris Meech1-Mar-10 7:35
Chris Meech1-Mar-10 7:35 
AnswerRe: the order by clause is invalid in views inline functions ... Pin
SilimSayo26-Feb-10 9:40
SilimSayo26-Feb-10 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.