Click here to Skip to main content
15,920,053 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
Hi,

My requirements are,
DatabaseName: Eros
Table Name: ABTypeNumber
FiledName: Id, ABType,ABNumber.

Another DatabaseName:IBP
TableName: ABRecord
FieldName: ID, ABType, ABNumber, Amount, TargetAudience, Product.


When, the record will be generate under the ABType IN IBP, ABNumber of this ABType will come from Eros Database.


Hope You Understand.

What I have tried:

I can't understand how will i start. Please give me suggestion.
Posted
Updated 1-Sep-16 3:09am
Comments
Herman<T>.Instance 1-Sep-16 8:05am    
which db-server do you use (MS SQL, MYSQL, Oracle, ...)?
[no name] 1-Sep-16 8:13am    
Start by doing some research using your favorite search engine.

1 solution

What you're doing here is cross-database. If you just Google that you should find out how to do it with whatever provider you're using. I recommend that you use stored procedures to generate rows in that case because you can't control cross-database referential integrity.

If you don't want to do that and you're just going to do it through C#, you simply pull the data down from each database you need then insert into whichever database.

If you're looking for how to use ADO.NET or EF, then you need to do research on those yourself.
 
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