G
Guest
Hi, I'm using vs2005 and .net 2.0
I used 2 DirectorySearchers to retrieve data from Active Directory and
placed them in 2 dataset tables. I need to perform the SQL equuvakebt of
join operation to create a 3rd dataset table that I will then pass to Crystal
Report.
1. Sometimes there could be 100,000 records or more per table. Is this the
most time efficient way to do it?
2. I tried using the datarelation and looping through each datarow but I'm
getting run time error something like" there is no matching value for each
parent value....". I want to retrieve the "join" records so there would be
times that a record is in one table but not the other but it's giving me
error so what should I do now to retrived the join records?
3. I didn't define primary key for either tables. Do I need to do that
first to address the error?
4. My datarelation code:
dsReport.Relations.Add("relationComputers",
dsReport.Tables["PadComputers"].Columns["cn"],
dsReport.Tables["AdComputers"].Columns["objectSid"]);
I used 2 DirectorySearchers to retrieve data from Active Directory and
placed them in 2 dataset tables. I need to perform the SQL equuvakebt of
join operation to create a 3rd dataset table that I will then pass to Crystal
Report.
1. Sometimes there could be 100,000 records or more per table. Is this the
most time efficient way to do it?
2. I tried using the datarelation and looping through each datarow but I'm
getting run time error something like" there is no matching value for each
parent value....". I want to retrieve the "join" records so there would be
times that a record is in one table but not the other but it's giving me
error so what should I do now to retrived the join records?
3. I didn't define primary key for either tables. Do I need to do that
first to address the error?
4. My datarelation code:
dsReport.Relations.Add("relationComputers",
dsReport.Tables["PadComputers"].Columns["cn"],
dsReport.Tables["AdComputers"].Columns["objectSid"]);