Database migration from MS Access to SQL Server includes converting queries into the destination format. This whitepaper explores basic tips for this procedure. The target audience should have general knowledge in database management and experience in composing SQL queries.
The process begins with extracting Microsoft Access queries in form of SQL statements. For this purpose:
Next step is to translate extracted statements according to MS SQL syntax. Below are required steps for this purpose:
select TOP 1 column_name from table_name order by something ASCand
select TOP 1 column_name from table_name order by something DESC
Microsoft Access | SQL Server |
asc | ascii |
chr | char |
date() | getdate() |
InStr($position, $expr1, $expr2) | CHARINDEX($expr2, $expr1, $position) |
int | floor |
lcase | lower |
NZ($expr1, $expr2) | IIF($expr1 IS NULL, $expr2, $expr1) |
sgn | sign |
ucase | upper |
If you need a solution for database migration from Access to SQL Server including table structures, data, indexes, relationships between tables and queries, take a look at Access to SQL Server converter