How to merge 2 tables fields in DataTable in asp.net
Answer Posted / prakash
You Can Write Query :
select (databasename).(owner).(tablename1).
(datafield),select (databasename).(owner).(tablename2).
(datafield) from (databasename).(owner).(tablename1),
(databasename).(owner).(tablename2)
Example:select
LSKGROUP.dbo.addsites.state,LSKGROUP.dbo.employee.empname
from LSKGROUP.dbo.addsites,LSKGROUP.dbo.employee
and then fill the values to new dataset table.
Remember:
if database also differ put databse's name accordingly
Good Luck.....
| Is This Answer Correct ? | 13 Yes | 8 No |
Post New Answer View All Answers
What are the features of asp.net mvc?
How to create events for a control?
What is the use of service provider?
What are directives in asp.net? List down all the important directives.
What’s the difference between response .redirect and server.transfer?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What is asp.net master page?
What is cookieless session id explain in brief?
What are the new data controls in asp.net 2.0?
How about the security in Activex DLL and Activex EXE ?
What is viewstate in asp net with example?
Explain Authentication mechanism in dotnet
What is autopostback true?
What is the difference between session object and application object?
How can you send an email message from an asp.net web page?