I want to get files information on share folder using this command :
EXEC master..xp_cmdshell 'dir \\Server\d$\folder1\folder2'
but I get an error
Access is denied
When I tried using cmd it works with dir command.
Is there any permission or anything I can do? Thanks for the help