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
Why we use asp.net for website development?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
Are xaml file compiled or built on runtime?
Is data edited in the Repeater control?
What are themes and skins in 2.0, explain usage scenario?
What is the used of "ispostback" property?
How do I create a web form?
What is validation in asp.net?
Explain why datareader is useful?
What are the types of caching in asp.net?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
Explain server-side scripting?
Explain the difference between the web config and machine config.
Can you dynamically assign a Master Page?
How to unit test Web API?