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

Database

 
GeneralRe: max two records........ Pin
N a v a n e e t h21-Jun-07 3:38
N a v a n e e t h21-Jun-07 3:38 
AnswerRe: max two records........ Pin
N a v a n e e t h21-Jun-07 3:01
N a v a n e e t h21-Jun-07 3:01 
GeneralRe: max two records........ Pin
Sathiyaraj Ganesan21-Jun-07 3:16
Sathiyaraj Ganesan21-Jun-07 3:16 
Questionnorthwind database Pin
Sebastian T Xavier21-Jun-07 0:50
Sebastian T Xavier21-Jun-07 0:50 
AnswerRe: northwind database Pin
originSH21-Jun-07 0:59
originSH21-Jun-07 0:59 
GeneralRe: northwind database Pin
Sebastian T Xavier21-Jun-07 1:16
Sebastian T Xavier21-Jun-07 1:16 
GeneralRe: northwind database Pin
originSH21-Jun-07 1:23
originSH21-Jun-07 1:23 
QuestionDatatable Merge IN C#.Net Pin
adnanrafiq20-Jun-07 23:31
adnanrafiq20-Jun-07 23:31 
Hi All,

I have two datatables, one datatable named "dtRecords1" gets filled from excel sheet, having column name "Name","Category", and on run time i have added a Identity column to "dtRecords1".

Second Column gets filled from sql server database having three columsn "ID as Identity","Name","Category".

Now i want to merge these two tables, i want this result from merge.

If there are some changes in first datatable, depending upon all columns (comparing all column values) and ID Is same,it should be overwrited, and if there are some new rows these also should be added to the resulted database.

Example:
Datatable1 from excel
ID,Name,Categoey
1,adnan,SE
2,ali,SSE
3,Imran,JSE
Datatable2 From SQL Server DB

ID,Name,Category
1,adnan,SSE
2,ali,SSE

Resulted Datatable

ID,Name,Category
1,adnan,SE -Changed ROw
2,ali,SSE -Unchanged Row
3,Imran,JSE - Newly added Row
Many THanks & Best Regards,
adnan

Many Thanks,
Adnan Rafiq
muhammadadnanrafiq@gmail.com

AnswerRe: Datatable Merge IN C#.Net Pin
ScottM121-Jun-07 2:24
ScottM121-Jun-07 2:24 
GeneralRe: Datatable Merge IN C#.Net Pin
adnanrafiq21-Jun-07 3:25
adnanrafiq21-Jun-07 3:25 
GeneralRe: Datatable Merge IN C#.Net Pin
ScottM121-Jun-07 3:35
ScottM121-Jun-07 3:35 
QuestionOLEDB driver on x64 operating system issues Pin
NetTim.Net20-Jun-07 23:01
NetTim.Net20-Jun-07 23:01 
AnswerRe: OLEDB driver on x64 operating system issues Pin
Mike Dimmick21-Jun-07 2:36
Mike Dimmick21-Jun-07 2:36 
QuestionHow to Nth maximum record in a table Pin
Sathiyaraj Ganesan20-Jun-07 20:52
Sathiyaraj Ganesan20-Jun-07 20:52 
AnswerRe: How to Nth maximum record in a table Pin
originSH20-Jun-07 21:45
originSH20-Jun-07 21:45 
AnswerRe: How to Nth maximum record in a table Pin
Krish - KP20-Jun-07 23:52
Krish - KP20-Jun-07 23:52 
QuestionHow to connect DB2 8.0 with .net Pin
bigeyed20-Jun-07 16:48
bigeyed20-Jun-07 16:48 
AnswerRe: How to connect DB2 8.0 with .net Pin
Mike Dimmick21-Jun-07 2:40
Mike Dimmick21-Jun-07 2:40 
QuestionCalling user defined function Pin
seemamltn20-Jun-07 14:30
seemamltn20-Jun-07 14:30 
AnswerRe: Calling user defined function Pin
vimal_yet20-Jun-07 18:17
vimal_yet20-Jun-07 18:17 
AnswerRe: Calling user defined function Pin
gauthee20-Jun-07 18:33
gauthee20-Jun-07 18:33 
QuestionHow to recover sql server database data? Pin
method00720-Jun-07 13:23
method00720-Jun-07 13:23 
AnswerRe: How to recover sql server database data? Pin
originSH20-Jun-07 23:50
originSH20-Jun-07 23:50 
GeneralRe: How to recover sql server database data? Pin
method00721-Jun-07 6:50
method00721-Jun-07 6:50 
QuestionSettings and Connection string full dereference Properties.Settings.dbConnectionString Pin
g18c20-Jun-07 12:03
g18c20-Jun-07 12:03 

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.