Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
GeneralRe: Max and Where Pin
WoutL5-May-04 4:06
WoutL5-May-04 4:06 
GeneralRe: Max and Where Pin
OmegaSupreme5-May-04 4:39
OmegaSupreme5-May-04 4:39 
GeneralMore on DataSets Pin
normanordas4-May-04 23:50
normanordas4-May-04 23:50 
GeneralRe: More on DataSets Pin
Mike Dimmick5-May-04 1:57
Mike Dimmick5-May-04 1:57 
GeneralMSDE Usage Pin
Roger Wright4-May-04 18:45
professionalRoger Wright4-May-04 18:45 
GeneralRe: MSDE Usage Pin
Maxwell Chen4-May-04 18:59
Maxwell Chen4-May-04 18:59 
GeneralRe: MSDE Usage Pin
normanordas4-May-04 23:59
normanordas4-May-04 23:59 
GeneralComparing two tables using C#, ADO.NET Pin
Brett Slaski4-May-04 8:24
Brett Slaski4-May-04 8:24 
Comparing two tables from different databases

I need to compare two tables from two different databases to show records in one table that are not in another. I am using ADO.NET and C#. I don’t wish to use a database link in MSSQL because it’s too slow. All that is left is code. In case you are curious, one database is MS SQL 2k and the other is Pervasive2000i.

Lets use DatabaseA TableB And DatabaseC TableD
If I where able to write a simple sql statement to show records in AB not in CD could be:
SELECT AB.ID, AB.Name
FROM DatabaseA.TableB as AB Left Join DatabaseC.TableD as CD on AB.ID = CD.ID
WHERE CD.ID is null

I am looking for a way to do this in C#. Using data relations between DataTables in a DataSet I think I can set up a filter to achive the same information, but I have ran out of time to experiment. So I look to you for some assistance. Thank you for any contributions.

Brett Slaski
GeneralCrystal Reports Pin
Mr. Cully4-May-04 1:09
Mr. Cully4-May-04 1:09 
GeneralRe: Crystal Reports Pin
Mr. Cully4-May-04 5:09
Mr. Cully4-May-04 5:09 
Generaldetach database Pin
Dpriya3-May-04 23:58
Dpriya3-May-04 23:58 
GeneralRe: detach database Pin
Mazdak4-May-04 5:38
Mazdak4-May-04 5:38 
QuestionHow I access database through a Map Network drive? Pin
ATC3-May-04 8:13
ATC3-May-04 8:13 
AnswerRe: How I access database through a Map Network drive? Pin
Mike Ellison4-May-04 8:31
Mike Ellison4-May-04 8:31 
Questionhow to put an image in sql database Pin
Member 7402202-May-04 11:15
Member 7402202-May-04 11:15 
AnswerRe: how to put an image in sql database Pin
Mazdak2-May-04 21:22
Mazdak2-May-04 21:22 
QuestionHow to convert null dates to String? Pin
Anonymous1-May-04 15:46
Anonymous1-May-04 15:46 
AnswerRe: How to convert null dates to String? Pin
Jeff Varszegi1-May-04 15:59
professionalJeff Varszegi1-May-04 15:59 
AnswerRe: How to convert null dates to String? Pin
-Dr_X-8-May-04 15:57
-Dr_X-8-May-04 15:57 
GeneralPreserve formatting and storing in Database Pin
Anonymous1-May-04 8:48
Anonymous1-May-04 8:48 
Generalquerying XML database Pin
ranadinesh1-May-04 0:47
ranadinesh1-May-04 0:47 
GeneralConnection Pool Pin
Albert Pascual30-Apr-04 13:24
sitebuilderAlbert Pascual30-Apr-04 13:24 
GeneralRe: Connection Pool Pin
Anonymous30-Apr-04 14:03
Anonymous30-Apr-04 14:03 
GeneralRe: Connection Pool Pin
Jeff Varszegi1-May-04 9:34
professionalJeff Varszegi1-May-04 9:34 
GeneralRe: Connection Pool Pin
Mike Dimmick4-May-04 5:45
Mike Dimmick4-May-04 5:45 

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.