Click here to Skip to main content
15,908,901 members
Home / Discussions / Database
   

Database

 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 8:23
mentorWendelius26-Oct-08 8:23 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 8:25
Ahmed R El Bohoty26-Oct-08 8:25 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 8:33
mentorWendelius26-Oct-08 8:33 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 8:47
Ahmed R El Bohoty26-Oct-08 8:47 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 10:59
mentorWendelius26-Oct-08 10:59 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 13:25
Ahmed R El Bohoty26-Oct-08 13:25 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius27-Oct-08 9:10
mentorWendelius27-Oct-08 9:10 
AnswerRe: Problem : Retrive Data with ref table Pin
Rami Said Abd Alhalim27-Oct-08 2:20
Rami Said Abd Alhalim27-Oct-08 2:20 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty27-Oct-08 2:23
Ahmed R El Bohoty27-Oct-08 2:23 
GeneralRe: Problem : Retrive Data with ref table Pin
Rami Said Abd Alhalim27-Oct-08 3:13
Rami Said Abd Alhalim27-Oct-08 3:13 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty27-Oct-08 3:19
Ahmed R El Bohoty27-Oct-08 3:19 
QuestionMoving Data Between Tables Pin
Meysam Mahfouzi26-Oct-08 0:49
Meysam Mahfouzi26-Oct-08 0:49 
AnswerRe: Moving Data Between Tables Pin
Wendelius26-Oct-08 1:29
mentorWendelius26-Oct-08 1:29 
GeneralRe: Moving Data Between Tables Pin
Meysam Mahfouzi26-Oct-08 2:34
Meysam Mahfouzi26-Oct-08 2:34 
GeneralRe: Moving Data Between Tables Pin
Wendelius26-Oct-08 2:39
mentorWendelius26-Oct-08 2:39 
AnswerRe: Moving Data Between Tables Pin
PIEBALDconsult29-Oct-08 5:38
mvePIEBALDconsult29-Oct-08 5:38 
GeneralRe: Moving Data Between Tables Pin
Meysam Mahfouzi29-Oct-08 10:20
Meysam Mahfouzi29-Oct-08 10:20 
GeneralRe: Moving Data Between Tables Pin
PIEBALDconsult29-Oct-08 11:39
mvePIEBALDconsult29-Oct-08 11:39 
GeneralRe: Moving Data Between Tables Pin
Meysam Mahfouzi29-Oct-08 17:21
Meysam Mahfouzi29-Oct-08 17:21 
GeneralRe: Moving Data Between Tables Pin
PIEBALDconsult30-Oct-08 4:28
mvePIEBALDconsult30-Oct-08 4:28 
GeneralRe: Moving Data Between Tables Pin
Meysam Mahfouzi30-Oct-08 8:12
Meysam Mahfouzi30-Oct-08 8:12 
GeneralRe: Moving Data Between Tables Pin
PIEBALDconsult30-Oct-08 10:26
mvePIEBALDconsult30-Oct-08 10:26 
Just got around to testing it:

INSERT INTO NewTable (OldID,OldParentID,Description) SELECT * FROM OldTable
SELECT * FROM NewTable
 
UPDATE A
SET ParentID=B.ID
FROM NewTable A
INNER JOIN NewTable B
ON A.OldParentID=B.OldID
 
SELECT * FROM NewTable


It worked on the small amount of data I created to test it:

1	NULL	1	NULL	Section 1
2	NULL	2	NULL	Section 2
3	1	1.a	1	Section 1.a
4	1	1.b	1	Section 1.b
5	2	2.a	2	Section 2.a
6	2	2.b	2	Section 2.b
7	3	1.a.i	1.a	Section 1.a.i
8	3	1.a.ii	1.a	Section 1.a.ii

GeneralRe: Moving Data Between Tables Pin
Meysam Mahfouzi31-Oct-08 19:59
Meysam Mahfouzi31-Oct-08 19:59 
Questionproblem to start a sql server service manager Pin
sathyan_829425-Oct-08 2:19
sathyan_829425-Oct-08 2:19 
AnswerRe: problem to start a sql server service manager Pin
Wendelius25-Oct-08 2:24
mentorWendelius25-Oct-08 2:24 

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.