An Azure relational database service.
Hi Geoffrey,
Each pool sits on one logical server (yourserver.database.windows.net). So the database has to be copied to arcoflexeast's server first. You don't need a bacpac for that: you can copy it straight into the pool.
- Create the logins on the new server with the same SIDs, so users map automatically:
-- old server, master
SELECT name, sid FROM sys.sql_logins WHERE type_desc = 'SQL_LOGIN';
-- new server, master
CREATE LOGIN appuser WITH PASSWORD = '<pwd>', SID = 0x<sid>;
- Copy the database. Run this in master on the new server, signed in with an identity that's admin on both servers:
-- master on the target server
CREATE DATABASE MasterBuilders
AS COPY OF [<source-server-name>].MasterBuilders
(SERVICE_OBJECTIVE = ELASTIC_POOL(name = arcoflexeast));
GO
-- the copy runs in the background; re-run until state_desc = ONLINE
SELECT name, state_desc FROM sys.databases WHERE name = 'MasterBuilders';
Both server firewalls must allow your IP. This doesn't work over a private endpoint.
- Point the app at the new server and test it. Then drop the old database and pool.
About the Entra sign-in loop: this usually means you're signing in as a guest or personal Microsoft account. Enter the tenant ID explicitly.