Click here to Skip to main content
15,884,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to merge two database in sql server 2005 through c# having same structure but data is different because two girls are working on this on their own system..AND WE DONT WANT TO PUT THE DATABASE ON SERVER AND WE ARE NOT ABLE TO PUT IT ON NETWORKING BECAUSE DISTANCE IS TOO MUCH...and they both are able to update and insert data....how to do that...please help me out
Posted
Updated 17-Apr-15 18:45pm
v3
Comments
PIEBALDconsult 18-Apr-15 0:53am    
"BECAUSE DISTANCE IS TOO MUCH" ? What?
Very unclear. Please use the Improve question button to add detail and context.
stuti123 18-Apr-15 1:32am    
different place .....and distance is near abt 100 km
PIEBALDconsult 18-Apr-15 11:30am    
So what? I talk to databases that are thousands of miles away all day.
phil.o 18-Apr-15 1:22am    
Please don't shout; assume we are able to read even if you do not use all-capital letters sentences.

Simple answer is NO, It is not possible (as far I know).
You can merge tables,stored procedures, views etc (along with data or without data) by generating scripts through Microsoft SQL Server Database Publishing Wizard 1.1 [^]

Reference: SQL Server Data Publishing wizard for SQL Server databases - See more at: http://www.sqlservergeeks.com/sql-server-data-publishing-wizard-for-sql-server-databases/#sthash.mG6p8LS2.dpuf[^]

But you can not insert/update/data at two locations not connected through LAN/WAN/Internet etc. You have to have any connectivity between the PCs and then you have to configure one of them to behave like server.

Hopefully, I understood your concern correctly.

Thanks :)
 
Share this answer
 
Comments
stuti123 18-Apr-15 1:29am    
thanks mr suvendu shekhar.....:)....is there any other option?
stuti123 18-Apr-15 1:30am    
is there any other type of database like access or excel in which this is possible..?
I'm not sure what you mean by saying merge two databases, because normally, merge mean synchronize database by by inserting, updating, or deleting rows in one table based on differences found in the other table. Please, see:
MERGE (Transact-SQL)[^]
Database Mirroring and Replication (SQL Server)[^]
Strategies for Backing Up and Restoring Merge Replication[^]

Seems, you want to join them together to get one result set. The difficult is that the data types are different. So, you need to convert them between data types.
Please see:
UNION[^]
CAST and CONVERT[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900