Click here to Skip to main content
15,883,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am reterive some data in ms access and save to dataset. now i want to save my data which reterive dataset is save sql server database.
Posted
Comments
Slacker007 11-Apr-11 6:47am    
I think your question is incomplete and needs more detail. Please edit accordingly. Thanks.
Prerak Patel 11-Apr-11 6:47am    
What is the problem? Just insert it to SQL.
Rakesh From Patna 11-Apr-11 7:00am    
I am create database in access and store data in access. but now i want to save my data first in access and later all data in access available is save the sql database. access and sql database table is same
Sandeep Mewara 11-Apr-11 10:27am    
And the issue is? What have you tried? Update the question with it.

1 solution

I just give you an idea.

You need 2 connections (1st for Access database & 2nd for SQL server database). Create Tables in both databases. Make connection string for those databases. Do code for storing & retrieving data from/into database. Major thing is you need to retrieve data from one database & then save those data in another database, that's all. You can do that by opening the database connections & doing manipulations with two databases.

Example.

  • Open database connection in Ms Access
  • Save data in Ms Access Database
  • Now retrieve data from Ms Access Database
  • Open database connection in SQL Server
  • Save data(retrieve data from Ms Access Database) in SQL Server Database
  • Close those database connections


BTW you need to handle many things in these steps like Transaction, concurrency, Duplication, etc., things..

For your information
Connecting ASP.NET to Access and SQL Server Database[^]
 
Share this answer
 
Comments
Monjurul Habib 11-Apr-11 15:25pm    
nice recommendation. my 5.

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