I am trying to connect to Synapse SQL database external tables (which access databricks lakehouse tables) from SQL server using openrowset
This works:
select * from
OPENROWSET(
'SQLNCLI',
'Server=test-ondemand.sql.azuresynapse.net;UID=john_doe_user;PWD=password;',
'SELECT * FROM dbo.table;');
but this does not work:
select * from
OPENROWSET(
'SQLNCLI',
'Server=test-ondemand.sql.azuresynapse.net;UID=john.doe@company-company.com;PWD=password;',
'SELECT * FROM dbo.table;');
It returns:
Cannot open server "company-company.com" requested by the login. The login failed.
Seems that the @
character is mistaken as variable, I tried all kinds of masking, but no success.
Anyone knows how to fix this / mask the @
character?