Hello Guruprasad Kulkarni,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept" the answer.
Issue: Unable to execute openrowset query from SSMS, the same query executes fine from synapse studio
Unable to execute below query in SSMS. However, the same query in synapse studio executes fine without any issue.
SELECT
Top l00 *
- from openrowset (bulk '/raw/parquet/log.parquet',
data_source ='xxx',
format = 'parquet') as result
Error Message:
file '/raw/parquet/log.parquet' cannot be opened because it doesnot exist or it is used by another process
Solution:
The identity used here is different when compared to synapse studio(Microsoft entra identity) and SSMS(SQL login). The Entra ID has 'storage blob data contributor' role.
This was resolved by using the same email-id(Entra ID) while logging into SSMS.
Authentication: Azure active directory- Universal with MFA
User name: Microsoft Entra Identity
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
Thank you again for your time and patience throughout this issue.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.