ahmedsalah
Active member
- Joined
- Sep 26, 2018
- Messages
- 32
- Programming Experience
- 3-5
I have shared path '\\192.168.7.9\Import\8' I face
issue when try to check this directory path exist or not .
when run script python on sql server 2019 it must
return true because directory path exist but my
issue is python script return false although directory exist .
script python
Expected result is True
issue when try to check this directory path exist or not .
when run script python on sql server 2019 it must
return true because directory path exist but my
issue is python script return false although directory exist .
script python
Python:
declare @ExportPath varchar(max)='\\192.168.7.9\Import\8'
EXEC sp_execute_external_script
@language =N'Python',
@script=N'
import os
d = os.path.isdir(ExportFilePath)
print(d)'
,@params = N'@ExportFilePath NVARCHAR(MAX)'
,@ExportFilePath = @ExportPath
Expected result is True