Aug-13-2022, 10:17 PM
I working on script running on sql server 2019 using python 3.10 .
I have directory path \\192.168.7.9\Import\8 as mapped network drive and can
write and read to files and delete and create files on this directory path \\192.168.7.9\Import\8.
my issue when run script python on sql server 2019 it give me error 5 access is denied
but it must return true because directory path exist.
this path have permissions everyone and administrator and system full control read and write and delete .
I have directory path \\192.168.7.9\Import\8 as mapped network drive and can
write and read to files and delete and create files on this directory path \\192.168.7.9\Import\8.
my issue when run script python on sql server 2019 it give me error 5 access is denied
but it must return true because directory path exist.
this path have permissions everyone and administrator and system full control read and write and delete .
EXEC sp_execute_external_script @language =N'Python', @script=N' import os result = os.system("net use S: \\\\192.168.7.9\\Import\\8") print("result =", result) d = os.path.isdir("S:") print("d =", d)'