Click here to Skip to main content
15,922,533 members
Home / Discussions / Database
   

Database

 
AnswerRe: Database BackUp Pin
TJoe7-Nov-07 7:58
TJoe7-Nov-07 7:58 
Questionretrieve image from access in to picture box Pin
sindhutiwari6-Nov-07 23:35
sindhutiwari6-Nov-07 23:35 
QuestionDatawarehousing course. Pin
Jwalant Natvarlal Soneji6-Nov-07 19:48
Jwalant Natvarlal Soneji6-Nov-07 19:48 
AnswerRe: Datawarehousing course. Pin
Colin Angus Mackay6-Nov-07 23:00
Colin Angus Mackay6-Nov-07 23:00 
QuestionDatabase error Pin
kingletas6-Nov-07 18:17
kingletas6-Nov-07 18:17 
AnswerRe: Database error Pin
r a j u u6-Nov-07 20:15
r a j u u6-Nov-07 20:15 
AnswerRe: Database error Pin
r a j u u6-Nov-07 20:17
r a j u u6-Nov-07 20:17 
Questionediting primary key Pin
Xmen Real 6-Nov-07 17:09
professional Xmen Real 6-Nov-07 17:09 
hi there,
i m using sql server 2005, and i wanna know how can i change primary key data
for example :
i have 3 tables
1. have 3 columns(EmpID, Salary, RegID)
where EmpID is Primary key and RegID is unique Key
2. have 2 columns(EmpID, Work)
where EmpID is Foreign key
3. have 2 columns(EmpID, Status)
where EmpID is Foreign key

now i wanna change EmpID in all 3 tables,
so i try do it something like this, as i know it will give error and wont work
Update Table1 set EmpID = XX where RegID = XX


can someone tell how can i do this... mean if i change EmpID in table 1 then it automatically change EmpID in others tables
is it possible? or any other way?
thanks



Becoming Programmer...

AnswerRe: editing primary key Pin
Rob Philpott6-Nov-07 23:23
Rob Philpott6-Nov-07 23:23 
AnswerRe: editing primary key Pin
Hesham Amin7-Nov-07 9:46
Hesham Amin7-Nov-07 9:46 
GeneralRe: editing primary key Pin
Xmen Real 7-Nov-07 14:43
professional Xmen Real 7-Nov-07 14:43 
QuestionSql 2005 Sporatic performance on same query Pin
jareddavies6-Nov-07 13:41
jareddavies6-Nov-07 13:41 
AnswerRe: Sql 2005 Sporatic performance on same query Pin
jareddavies6-Nov-07 13:46
jareddavies6-Nov-07 13:46 
GeneralRe: Sql 2005 Sporatic performance on same query Pin
jareddavies8-Nov-07 14:30
jareddavies8-Nov-07 14:30 
QuestionProblem with a WHERE statement Pin
solutionsville6-Nov-07 8:07
solutionsville6-Nov-07 8:07 
AnswerRe: Problem with a WHERE statement Pin
Christian Graus6-Nov-07 9:06
protectorChristian Graus6-Nov-07 9:06 
AnswerRe: Problem with a WHERE statement Pin
solutionsville7-Nov-07 6:33
solutionsville7-Nov-07 6:33 
QuestionHelp! I'm a beginner. Pin
meki_21186-Nov-07 3:52
meki_21186-Nov-07 3:52 
AnswerRe: Help! I'm a beginner. Pin
Colin Angus Mackay6-Nov-07 4:00
Colin Angus Mackay6-Nov-07 4:00 
AnswerRe: Help! I'm a beginner. Pin
Paul Conrad6-Nov-07 16:02
professionalPaul Conrad6-Nov-07 16:02 
QuestionRestricting Field List of Pivot table at Cube Level Pin
s.sathyanarayanan6-Nov-07 3:07
s.sathyanarayanan6-Nov-07 3:07 
QuestionHTTP ENDPOINT in SQL Pin
baala.m6-Nov-07 2:40
baala.m6-Nov-07 2:40 
AnswerRe: HTTP ENDPOINT in SQL Pin
Colin Angus Mackay6-Nov-07 2:51
Colin Angus Mackay6-Nov-07 2:51 
QuestionTRANSACT SQL "TRUNCATE" Pin
craneprince6-Nov-07 2:38
craneprince6-Nov-07 2:38 
AnswerRe: TRANSACT SQL "TRUNCATE" Pin
Colin Angus Mackay6-Nov-07 2:48
Colin Angus Mackay6-Nov-07 2:48 

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.