1
I need to import data that is in an Access database via Sql Server code. My software that is made in C# for many years has been integrated into an Access database. From now on we are migrating to Sql Server and the intention is that when upgrading to the next version the system will only work with Sql Server. I think in principle to create an SQL database with the same names of tables and columns and by software to read the Access tables and save the data in the Sql database. Is there any other more practical way to do this via code?
I’ve been researching and found only tools ready, but nothing via programming.
Your intention is to actually do only via code?
– Theotonio
Yes! Because there is already a user base using the old software with Access database. The intention is that in the update to the next version the system will only work with Sql Server and we have no way to access machine by machine to migrate from database.
– Leandro
You can use Access as the front end for SQL Server; see linked table. Or, in T-SQL programming, you can open the Access tables directly in SQL Server. There are several options, via code.
– José Diz
@Josédiz, in this case would not have to access machine by machine of each user and install the Sqlserver to make the migration? The intention is that by the software, in the form created by visual studio, when updating the software to the new version, the user can even make the migration to the new database just by clicking on a button Ok, for example.
– Leandro