1

I am working on this MS Azure article: Connect to and manage Azure Synapse Analytics workspaces in Azure Purview. But in Grant permission to use credentials for external tables section of the article, when I run the following query, I get the error shown below:

SQL: GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::[mySynapseWorkspace] TO [myPurviewAccountName];

Error:

mismatched input 'SCOPED' expecting ':'

Question: What may be a cause of the error, and how can we fix it?

nam
  • 21,967
  • 37
  • 158
  • 332

1 Answers1

1

I learn from a similar issue logged that you should be providing your credential name and username instead.

Try,

GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::[your_credential_name] TO [your_username];
KarthikBhyresh-MT
  • 4,560
  • 2
  • 5
  • 12
  • According to article I referenced, the `your_username` is `myPurviewAccountName`. What would be the `your_credential_name` here? – nam Dec 07 '21 at 03:51
  • the scoped credential i.e. the one used in account credential – KarthikBhyresh-MT Dec 07 '21 at 04:34
  • Which account? Could you please give me an example that may help me. – nam Dec 16 '21 at 23:42
  • `your_username` is the LOGIN name you created first from the external provider and `your_credential_name` from [Create a new credential](https://learn.microsoft.com/en-us/azure/purview/manage-credentials#create-a-new-credential) – KarthikBhyresh-MT Jan 06 '22 at 03:50