Connect Microsoft Access or VB6 to SQL Server Express 2019
Question details
Use SQL Server Express 2019 to store data for an existing Access or VB6 application.

- Product
- Microsoft Access, Visual Basic 6, and SQL Server Express 2019
- Device & OS
- not provided
- Scenario
- The user wants to keep an existing application interface while moving its data to SQL Server Express, or consider a modern replacement interface.
- Observed behavior
- Access or VB6 serves as the application front end, while SQL Server Express stores and manages the data.
Identify whether the existing interface is built in Access or VB6, and confirm the SQL Server instance name, database name, and authentication method. Install an appropriate SQL Server ODBC driver that matches the bitness of the application.
Link Access tables to SQL Server Express
Use this approach to keep existing Access forms and reports while storing their data in SQL Server.
The SQL Server database must contain the tables you want to link. If the data is still in Access, migrate it first, for example with SQL Server Migration Assistant for Access.
Open SQL Server Management Studio, connect to the SQL Server Express instance, and confirm that the target database and tables are available.
Open the Access application and select External Data > New Data Source > From Other Sources > ODBC Database. Choose the option to link to the data source by creating a linked table.
In the data source dialog, select or create an ODBC data source using the SQL Server driver. Enter the server instance, authentication details, and target database, then test the connection.
Choose the SQL Server tables to link. If Access asks for a unique record identifier, select the appropriate key, then open the existing forms and reports to test their data sources.

Connect an existing VB6 interface through ODBC
Use this option when the application interface already exists in VB6 and only its data store needs to change.
Use WPS Office for everyday documents alongside your database
WPS Office is a free, lightweight alternative for everyday office work, with a familiar interface and support for common Microsoft Office formats to make migration easier. It does not replace Access forms, VB6 applications, or SQL Server.

Frequently Asked Questions
Can I keep my Access forms and reports after moving data to SQL Server?
Yes. Link the SQL Server tables through External Data > New Data Source > From Other Sources > ODBC Database, then test the forms and reports. Some queries or VBA code may need adjustment.
Which ODBC driver bitness should I use?
Use a SQL Server ODBC driver that matches the application. For a 32-bit VB6 application, configure the connection with the 32-bit ODBC Data Source Administrator.
Do linked tables automatically move Access data to SQL Server?
No. Linking connects Access to tables that already exist in SQL Server. Migrate the tables and data first, for example with SQL Server Migration Assistant for Access.
Should I rebuild the interface in .NET?
Not necessarily. If the existing Access or VB6 interface meets your needs, you can retain it and change the data connection. C# or VB.NET is an option when you want to develop a new interface.




